锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品久久久久久久久久久久包黑料,天堂成人在线,国产精品99久久久久久宅男http://www.aygfsteel.com/xiaocai/鐢熸椿灝辨槸涓鏉尪zh-cnWed, 18 Jun 2025 09:00:32 GMTWed, 18 Jun 2025 09:00:32 GMT60浣跨敤 Java 榪涜鍥懼儚澶勭悊 - 鍥懼儚緙╂斁 http://www.aygfsteel.com/xiaocai/archive/2007/08/18/137771.html灝忚彍灝忚彍Sat, 18 Aug 2007 02:20:00 GMThttp://www.aygfsteel.com/xiaocai/archive/2007/08/18/137771.htmlhttp://www.aygfsteel.com/xiaocai/comments/137771.htmlhttp://www.aygfsteel.com/xiaocai/archive/2007/08/18/137771.html#Feedback0http://www.aygfsteel.com/xiaocai/comments/commentRss/137771.htmlhttp://www.aygfsteel.com/xiaocai/services/trackbacks/137771.html * @param srcImage 婧愬浘鍍忓璞°?
* @param xscale 鍥懼儚 x 杞達(dá)紙瀹藉害錛変笂鐨勭殑緙╂斁姣斾緥銆?
* @param yscale 鍥懼儚 y 杞達(dá)紙楂樺害錛変笂鐨勭殑緙╂斁姣斾緥銆?
* @param hints 閲嶆柊緇樺浘浣跨敤鐨?RenderingHints 瀵硅薄銆?
* @return 緙╂斁鍚庣殑鍥懼儚瀵硅薄  闃呰鍏ㄦ枃

灝忚彍 2007-08-18 10:20 鍙戣〃璇勮
]]>
鐢⊿wing澶勭悊鍥劇墖緙╂斁鍜屾嫋鍔?/title><link>http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137686.html</link><dc:creator>灝忚彍</dc:creator><author>灝忚彍</author><pubDate>Fri, 17 Aug 2007 12:19:00 GMT</pubDate><guid>http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137686.html</guid><wfw:comment>http://www.aygfsteel.com/xiaocai/comments/137686.html</wfw:comment><comments>http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137686.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xiaocai/comments/commentRss/137686.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xiaocai/services/trackbacks/137686.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137686.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/xiaocai/aggbug/137686.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xiaocai/" target="_blank">灝忚彍</a> 2007-08-17 20:19 <a href="http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137686.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java鍥懼儚鐨勫鉤縐葷瓑http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137483.html灝忚彍灝忚彍Fri, 17 Aug 2007 02:58:00 GMThttp://www.aygfsteel.com/xiaocai/archive/2007/08/17/137483.htmlhttp://www.aygfsteel.com/xiaocai/comments/137483.htmlhttp://www.aygfsteel.com/xiaocai/archive/2007/08/17/137483.html#Feedback0http://www.aygfsteel.com/xiaocai/comments/commentRss/137483.htmlhttp://www.aygfsteel.com/xiaocai/services/trackbacks/137483.html闃呰鍏ㄦ枃

灝忚彍 2007-08-17 10:58 鍙戣〃璇勮
]]>
瀵逛簬 Graphics 綾葷殑涓鐐硅璇?杞?http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137472.html灝忚彍灝忚彍Fri, 17 Aug 2007 02:08:00 GMThttp://www.aygfsteel.com/xiaocai/archive/2007/08/17/137472.htmlhttp://www.aygfsteel.com/xiaocai/comments/137472.htmlhttp://www.aygfsteel.com/xiaocai/archive/2007/08/17/137472.html#Feedback0http://www.aygfsteel.com/xiaocai/comments/commentRss/137472.htmlhttp://www.aygfsteel.com/xiaocai/services/trackbacks/137472.html    涓轟簡浠f浛閭d簺綰補(bǔ)鐨勩佸彲緇樺埗鍥懼艦鐨勫璞★紝AWT 浣跨敤浜嗕竴縐嶇畝鍗曠殑妯″紡銆傛瘡涓?AWT 鏋勪歡瀹屽叏鏉ヨ嚜浜庡畠鑷繁鐨?java.awt.Graphics 瀵硅薄銆?/p>

    java.awt.Graphics 鏄竴涓娊璞$被錛屽叾浣滅敤鏄畾涔変竴涓湡姝g殑宸ュ叿錛岀敤鏉ユ帴鍙楀浘褰㈡搷浣溿?/strong>

琛ㄤ竴錛氫紶閫掍竴涓 Graphics 鐨勫紩鐢ㄧ殑 JDK 鏂規(guī)硶

java.awt Canvas paint(Graphics g)
Component paint(Graphics g)
Component paintAll(Graphics g)
Component print(Graphics g)
Component printAll(Graphics g)
Component update(Graphics g)
Container paint(Graphics g)
Container paintComponents(Graphics g)
Container print(Graphics g)
Container printComponents(Graphics g)
ScrollPane printComponents(Graphics g)
java.beans Property-Editor paintValue(Graphics g, Rectangle r)
Property-EditorSupport paintValue(Graphics g, Rectangle r)

琛ㄤ簩錛氳繑鍥?Graphics 寮曠敤鐨?JDK 鏂規(guī)硶

java.awt Component getGraphics()
Image getGraphics()
PrintJob getGraphics()
Graphics create()
Graphics create(intx, int y, int w, int h)

Graphics 綾誨飽琛?涓富瑕佺殑鑱岃矗錛?/strong>

    · 璁劇疆鍜岃幏鍙栧浘褰㈠弬鏁般?/p>

    · 鍦ㄨ緭鍑鴻澶囦腑鎵ц鍥懼艦鎿嶄綔銆?/p>

寰楀埌鏋勪歡鐨?Graphics 鐨勫紩鐢ㄦ湁2縐嶆柟娉曪細(xì)

    · 閲嶈澆 琛ㄤ竴 涓殑鏂規(guī)硶錛堜紶閫?Graphics 鐨勫紩鐢級

    · 璋冪敤 琛ㄤ簩 涓殑鏂規(guī)硶錛堣繑鍥?Graphics 鐨勫壇鏈級

Graphics 瀵硅薄鐨勫鍛?/strong>

    闄や簡浣跨敤 琛ㄤ簩 鐨勬柟娉曞緱鍒扮殑 Graphics 鐨勫壇鏈錛屼嬌鐢?琛ㄤ竴 鐨勬柟娉曞緱鍒扮殑 Graphics 鐨勫紩鐢ㄥ彧鏈夊湪鏂規(guī)硶鐨勬墽琛岃繃紼嬩腑鎵嶆湁鏁堬紙渚嬪閲嶈澆鐨?paint() 鍜?update() 絳夋柟娉曪級銆備竴鏃︽柟娉曡繑鍥烇紝寮曠敤灝嗕笉鍐嶆湁鏁堛?/p>

    閫氳繃浣跨敤 琛ㄤ簩 鐨勬柟娉曞緱鍒扮殑 Graphics 鐨勫璞′嬌鐢ㄥ畬鍚庨渶瑕佽皟鐢?Graphics.dispose() 鏂規(guī)硶澶勭悊銆?/p>

// 紼嬪簭鐗囨柇
public void someMethodInAComponent(){
 Graphics g = getGraphics();
 
 if(g != null){
  try{
   // ...
   // ...
  }
  finally{
   g.dispose();
  }
 }
}

Graphics 綾昏繕鎻愪緵2涓柟娉曞垱寤?Graphics 瀵硅薄錛?/strong>

    · Graphics create() 

        鍒涘緩綺劇‘鐨?Graphics 鍓湰銆?/p>

    · Graphics create(int x, int y, int w, int h)

        鍒涘緩涓涓壇鏈紝浣嗘槸錛屽彉鍏冩寚瀹氫竴涓鉤縐婚噺 (x, y) 鍜屼竴涓柊鐨勫壀璐寸煩褰?(x, y, w, h)銆俢reate(int, int, int, int) 榪斿洖鐨?Graphics 鐨勫師鐐硅杞崲鎴?(x, y) 鐨勫潗鏍囷紝浣嗘槸鍓創(chuàng)鐭╁艦杞崲涓哄師鍓創(chuàng)鐭╁艦鍜屾寚瀹氱煩褰㈢殑浜ら泦銆?/p>

import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

public class CreateTest extends Applet{
 private Image image;
 
 public void init(){
  image = getImage(getCodeBase(),"lena.jpg");
  try{
   MediaTracker mt = new MediaTracker(this);
   mt.addImage(image,0);
   mt.waitForID(0);
  }
  catch(InterruptedException e){
   e.printStackTrace();
  }
 }
 
 public void paint(Graphics g){
  Graphics copy = g.create(image.getWidth(this),0,image.getWidth(this),image.getHeight(this));
  
  try{
   System.out.println("g: " + g.getClip().toString());
   System.out.println("copy: " + copy.getClip().toString());
   
   g.drawImage(image,0,0,this);
   copy.drawImage(image,0,0,this);
  }
  finally{
   copy.dispose();
  }
 }
}



灝忚彍 2007-08-17 10:08 鍙戣〃璇勮
]]>
Java鍥懼儚鎶鏈?/title><link>http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137433.html</link><dc:creator>灝忚彍</dc:creator><author>灝忚彍</author><pubDate>Thu, 16 Aug 2007 23:48:00 GMT</pubDate><guid>http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137433.html</guid><wfw:comment>http://www.aygfsteel.com/xiaocai/comments/137433.html</wfw:comment><comments>http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137433.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xiaocai/comments/commentRss/137433.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xiaocai/services/trackbacks/137433.html</trackback:ping><description><![CDATA[     鎽樿: 絎旇呭湪榪欓噷灝嗙敾綰?鐢繪垨濉厖澶氳竟褰㈢瓑鐞嗚В涓?鍥懼艦"鎶鏈?灝嗗浘鐗囩殑鍙樻崲,鏄劇ず鐞嗚В涓?鍥懼儚"鎶鏈? <br> <br>鐩稿鑰岃█,鍥懼艦鎶鏈緝綆鍗?鍥懼儚鎶鏈緝澶嶆潅.涓嬮潰絎旇呬粠瀹炵敤鐨勮搴﹀嚭鍙?璁茶В鍑犱釜鍥懼儚緙栫▼闂.棣栧厛,鎴戜滑鐪嬩笅闈㈣繖涓▼搴? <br> <br>import java.applet.*; <br> <br>import java.awt.*;  <a href='http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137433.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/xiaocai/aggbug/137433.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xiaocai/" target="_blank">灝忚彍</a> 2007-08-17 07:48 <a href="http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137433.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎺ㄨ崘涓涓潪甯告鐨凮penGL瀛︿範(fàn)緗戠珯 http://www.aygfsteel.com/xiaocai/archive/2007/08/16/137391.html灝忚彍灝忚彍Thu, 16 Aug 2007 12:59:00 GMThttp://www.aygfsteel.com/xiaocai/archive/2007/08/16/137391.htmlhttp://www.aygfsteel.com/xiaocai/comments/137391.htmlhttp://www.aygfsteel.com/xiaocai/archive/2007/08/16/137391.html#Feedback1http://www.aygfsteel.com/xiaocai/comments/commentRss/137391.htmlhttp://www.aygfsteel.com/xiaocai/services/trackbacks/137391.htmlhttp://nehe.gamedev.net/ 鏄棤鎰忎腑鍙戠幇鐨勪竴涓叕璁ら潪甯告鐨凮penGL瀛︿範(fàn)緗戠珯,鑰屼笖鍦ㄥ浗鍐呮湁璁稿緗戠珯涓婇潰鏈変腑鏂囩炕璇戠増,涓嶈繃涓嶆槸姣忎釜緗戠珯閮藉彲浠ラ『鍒╁湴涓嬭澆紼嬪簭鏂囦歡.榪欑珯鐐逛笂闈㈡湁閽堝 OpenGL 鐨勪竴緋誨垪绔犺妭,鐪嬭繃涔嬪悗瑙夊緱鑷繁鍐嶅啓OpenGL鐨勫涔?fàn)浣撲細(xì)灏辨湁浜涘浣欎? 閲岄潰姣忎竴绔犺妭鍚庨潰鏈変笉鍚岃璦瀹炵幇鐨勬簮紼嬪簭,鐭皬綺炬?zhèn)?闈炲父鏄撲簬閽堝鎬х獊鐮寸煡璇嗙偣.鏄笉鍙寰楃殑閲戦挜鍖欙紙灝ゅ叾澶ч儴鍒嗙ず渚嬮兘鏈塋WJGL鐨勫疄鐜幫級.


鍦ㄥ涔?fàn)杩嚱E嬩腑,鍙戠幇鍏朵腑瀵逛簬OpenGL鐨勮皟鐢ㄩ潪甯稿ソ,浣嗘槸榪囦簬閽堝OpenGL鐨勭壒鑹?浣垮緱鍏舵煇浜涙椂鍊欏拷鐣ヤ簡涓嶅悓璇█鍦ㄨ皟鐢?OpenGL鏃跺欑殑宸紓,姣斿鍦↗ava紼嬪簭涓妸鍐呭瓨鍦板潃浼犻掔粰OpenGL鐘舵佹満鏄浣曞疄鐜扮殑? 涓轟粈涔堣鐢˙uffer絳?瑕佹帉鎻″ソOpenGL,闄や簡瀵筄penGL浜嗗鎸囨帉澶?榪樿鐜╁緱杞嚦灝戜竴縐嶈綆楁満璇█,鍝曟槸VB.



灝忚彍 2007-08-16 20:59 鍙戣〃璇勮
]]>閰嶇疆瀛︿範(fàn)鐜http://www.aygfsteel.com/xiaocai/archive/2007/08/16/137390.html灝忚彍灝忚彍Thu, 16 Aug 2007 12:55:00 GMThttp://www.aygfsteel.com/xiaocai/archive/2007/08/16/137390.htmlhttp://www.aygfsteel.com/xiaocai/comments/137390.htmlhttp://www.aygfsteel.com/xiaocai/archive/2007/08/16/137390.html#Feedback0http://www.aygfsteel.com/xiaocai/comments/commentRss/137390.htmlhttp://www.aygfsteel.com/xiaocai/services/trackbacks/137390.htmlOS  WindowsXP SP2
IDE Eclipse3.2
LWJGL LWJGL 1.0 beta 2
J2SE 1.6 beat 2
Eclipse璇峰埌 www.eclipse.org 涓嬭澆
LWJGL 涓婚〉 www.lwjgl.org
J2SE 涓婚〉 http://java.sun.com
涓嬭澆LWJGL鍚庯紝灝嗗叾瑙e帇緙╋紝鎶婂叾涓璴wjgl-1.0beta2\lwjgl-1.0beta2\native\win32涓嬬殑DLL鏂囦歡鍏ㄩ儴澶嶅埗鍒癑ava瀹夎璺緞涓嬬殑jre/bin涓嬮潰錛屼竴鐢熸満鍣ㄤ笂鐨勭粷瀵硅礬寰勬槸C:\Program Files\Java\jdk1.6.0\jre\bin. 鍚岀悊錛屽皢LWJGL鐩綍(lwjgl-1.0beta2\lwjgl-1.0beta2\jar)涓嬬殑鎵鏈塉AR搴撴枃浠跺鍒跺埌C:\Program Files\Java\jdk1.6.0\jre\lib\ext涓嬮潰銆?ext鐩綍鏄疛ava鐜鐨勫簱鎵╁睍鐩綍錛岃繖浜涗笉鐢ㄦ垜澶氳浜嗗惂錛氾級)
褰撶劧錛屼負(fù)浜嗘墍緙栧啓鍑烘潵鐨勭▼搴忓彲浠ュ湪鍏跺畠鏈哄櫒涓婅繍琛岋紝鐩爣鏈哄櫒涓婁竴瀹氳閰嶇疆濂絃WJGL鎵嶅彲浠ュ摕銆?/font>
濂界殑錛岀幇鍦ㄥ惎鍔‥clipse錛屾柊寤轟竴涓狫ava宸ョ▼錛屽湪JRE System Lib閲岄潰搴旇灝卞彲浠ョ湅鍒癓WJGL搴撴枃浠朵簡銆?br _extended="true">
涓婇潰鐨勬柟娉曟槸鎴戠煡閬撶殑鏈鍋鋒噿鐨勬柟娉曚簡,涓嶇敤鍘婚厤緗儲浜虹殑鐜鍙橀噺.鍏跺疄榪樻湁寰堝鍦ㄥ紑鍙戠幆澧冪殑鏇存瑙勭殑閰嶇疆鏂規(guī)硶,鍙互鍒癓WJGL鐨勫畼鏂圭綉绔欏弬鑰?閲岄潰鏈夊叧浜嶦clipse,NetBeans,JCreator絳夋祦琛屽伐浣滅殑璇︾粏閰嶇疆姝ラ.



灝忚彍 2007-08-16 20:55 鍙戣〃璇勮
]]>
java濡備綍鍦╲rml閲屽脊鍑虹獥鍙?/title><link>http://www.aygfsteel.com/xiaocai/archive/2007/08/15/136859.html</link><dc:creator>灝忚彍</dc:creator><author>灝忚彍</author><pubDate>Wed, 15 Aug 2007 03:39:00 GMT</pubDate><guid>http://www.aygfsteel.com/xiaocai/archive/2007/08/15/136859.html</guid><wfw:comment>http://www.aygfsteel.com/xiaocai/comments/136859.html</wfw:comment><comments>http://www.aygfsteel.com/xiaocai/archive/2007/08/15/136859.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xiaocai/comments/commentRss/136859.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xiaocai/services/trackbacks/136859.html</trackback:ping><description><![CDATA[     鎽樿: 鎴戠収鐫銆奦RML涓嶫ava緙栫▼鎶鏈嬶紝鍐欎簡榪欐牱鐨勪竴涓▼搴忥紝浣嗘槸娌℃晥鏋滃嚭鏉?<br> <br>璇烽珮鎵嬩滑鎸囨暀鍟婏紒錛侊紒 <br> <br>  <a href='http://www.aygfsteel.com/xiaocai/archive/2007/08/15/136859.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/xiaocai/aggbug/136859.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xiaocai/" target="_blank">灝忚彍</a> 2007-08-15 11:39 <a href="http://www.aygfsteel.com/xiaocai/archive/2007/08/15/136859.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">江川县</a>| <a href="http://" target="_blank">堆龙德庆县</a>| <a href="http://" target="_blank">德庆县</a>| <a href="http://" target="_blank">松溪县</a>| <a href="http://" target="_blank">榆社县</a>| <a href="http://" target="_blank">西安市</a>| <a href="http://" target="_blank">黄浦区</a>| <a href="http://" target="_blank">乃东县</a>| <a href="http://" target="_blank">拉萨市</a>| <a href="http://" target="_blank">江城</a>| <a href="http://" target="_blank">沿河</a>| <a href="http://" target="_blank">扬中市</a>| <a href="http://" target="_blank">江孜县</a>| <a href="http://" target="_blank">彭泽县</a>| <a href="http://" target="_blank">黄山市</a>| <a href="http://" target="_blank">赞皇县</a>| <a href="http://" target="_blank">中卫市</a>| <a href="http://" target="_blank">武隆县</a>| <a href="http://" target="_blank">江阴市</a>| <a href="http://" target="_blank">仪征市</a>| <a href="http://" target="_blank">泾川县</a>| <a href="http://" target="_blank">嘉禾县</a>| <a href="http://" target="_blank">体育</a>| <a href="http://" target="_blank">宝丰县</a>| <a href="http://" target="_blank">乌恰县</a>| <a href="http://" target="_blank">大田县</a>| <a href="http://" target="_blank">安岳县</a>| <a href="http://" target="_blank">介休市</a>| <a href="http://" target="_blank">衡南县</a>| <a href="http://" target="_blank">台北市</a>| <a href="http://" target="_blank">灌云县</a>| <a href="http://" target="_blank">防城港市</a>| <a href="http://" target="_blank">逊克县</a>| <a href="http://" target="_blank">新干县</a>| <a href="http://" target="_blank">茶陵县</a>| <a href="http://" target="_blank">南漳县</a>| <a href="http://" target="_blank">濮阳市</a>| <a href="http://" target="_blank">苍山县</a>| <a href="http://" target="_blank">阜南县</a>| <a href="http://" target="_blank">庆安县</a>| <a href="http://" target="_blank">广平县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>