锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品久久久久久久久久久久包黑料,天堂成人在线,国产精品99久久久久久宅男 http://www.aygfsteel.com/xiaocai/鐢熸椿灝辨槸涓鏉尪 zh-cn Wed, 18 Jun 2025 09:00:32 GMT Wed, 18 Jun 2025 09:00:32 GMT 60 浣跨敤 Java 榪涜鍥懼儚澶勭悊 - 鍥懼儚緙╂斁 http://www.aygfsteel.com/xiaocai/archive/2007/08/18/137771.html灝忚彍 灝忚彍 Sat, 18 Aug 2007 02:20:00 GMT http://www.aygfsteel.com/xiaocai/archive/2007/08/18/137771.html http://www.aygfsteel.com/xiaocai/comments/137771.html http://www.aygfsteel.com/xiaocai/archive/2007/08/18/137771.html#Feedback 0 http://www.aygfsteel.com/xiaocai/comments/commentRss/137771.html http://www.aygfsteel.com/xiaocai/services/trackbacks/137771.html * @param srcImage 婧愬浘鍍忓璞°? * @param xscale 鍥懼儚 x 杞達(dá)紙瀹藉害錛変笂鐨勭殑緙╂斁姣斾緥銆? * @param yscale 鍥懼儚 y 杞達(dá)紙楂樺害錛変笂鐨勭殑緙╂斁姣斾緥銆? * @param hints 閲嶆柊緇樺浘浣跨敤鐨?RenderingHints 瀵硅薄銆? * @return 緙╂斁鍚庣殑鍥懼儚瀵硅薄 闃呰鍏ㄦ枃 ]]> 鐢⊿wing澶勭悊鍥劇墖緙╂斁鍜屾嫋鍔?/title> http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137686.html灝忚彍 灝忚彍 Fri, 17 Aug 2007 12:19:00 GMT http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137686.html http://www.aygfsteel.com/xiaocai/comments/137686.html http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137686.html#Feedback 0 http://www.aygfsteel.com/xiaocai/comments/commentRss/137686.html http://www.aygfsteel.com/xiaocai/services/trackbacks/137686.html 闃呰鍏ㄦ枃 ]]> java鍥懼儚鐨勫鉤縐葷瓑 http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137483.html灝忚彍 灝忚彍 Fri, 17 Aug 2007 02:58:00 GMT http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137483.html http://www.aygfsteel.com/xiaocai/comments/137483.html http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137483.html#Feedback 0 http://www.aygfsteel.com/xiaocai/comments/commentRss/137483.html http://www.aygfsteel.com/xiaocai/services/trackbacks/137483.html 闃呰鍏ㄦ枃 ]]> 瀵逛簬 Graphics 綾葷殑涓鐐硅璇?杞? http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137472.html灝忚彍 灝忚彍 Fri, 17 Aug 2007 02:08:00 GMT http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137472.html http://www.aygfsteel.com/xiaocai/comments/137472.html http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137472.html#Feedback 0 http://www.aygfsteel.com/xiaocai/comments/commentRss/137472.html http://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(); } } }
]]>Java鍥懼儚鎶鏈?/title> http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137433.html灝忚彍 灝忚彍 Thu, 16 Aug 2007 23:48:00 GMT http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137433.html http://www.aygfsteel.com/xiaocai/comments/137433.html http://www.aygfsteel.com/xiaocai/archive/2007/08/17/137433.html#Feedback 0 http://www.aygfsteel.com/xiaocai/comments/commentRss/137433.html http://www.aygfsteel.com/xiaocai/services/trackbacks/137433.html
鐩稿鑰岃█,鍥懼艦鎶鏈緝綆鍗?鍥懼儚鎶鏈緝澶嶆潅.涓嬮潰絎旇呬粠瀹炵敤鐨勮搴﹀嚭鍙?璁茶В鍑犱釜鍥懼儚緙栫▼闂.棣栧厛,鎴戜滑鐪嬩笅闈㈣繖涓▼搴?
import java.applet.*;
import java.awt.*; 闃呰鍏ㄦ枃 ]]> 鎺ㄨ崘涓涓潪甯告鐨凮penGL瀛︿範(fàn)緗戠珯 http://www.aygfsteel.com/xiaocai/archive/2007/08/16/137391.html灝忚彍 灝忚彍 Thu, 16 Aug 2007 12:59:00 GMT http://www.aygfsteel.com/xiaocai/archive/2007/08/16/137391.html http://www.aygfsteel.com/xiaocai/comments/137391.html http://www.aygfsteel.com/xiaocai/archive/2007/08/16/137391.html#Feedback 1 http://www.aygfsteel.com/xiaocai/comments/commentRss/137391.html http://www.aygfsteel.com/xiaocai/services/trackbacks/137391.html http://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.
]]>閰嶇疆瀛︿範(fàn)鐜 http://www.aygfsteel.com/xiaocai/archive/2007/08/16/137390.html灝忚彍 灝忚彍 Thu, 16 Aug 2007 12:55:00 GMT http://www.aygfsteel.com/xiaocai/archive/2007/08/16/137390.html http://www.aygfsteel.com/xiaocai/comments/137390.html http://www.aygfsteel.com/xiaocai/archive/2007/08/16/137390.html#Feedback 0 http://www.aygfsteel.com/xiaocai/comments/commentRss/137390.html http://www.aygfsteel.com/xiaocai/services/trackbacks/137390.html OS WindowsXP SP2
IDE Eclipse3.2
LWJGL LWJGL 1.0 beta 2
J2SE 1.6 beat 2
涓嬭澆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絳夋祦琛屽伐浣滅殑璇︾粏閰嶇疆姝ラ.
]]>java濡備綍鍦╲rml閲屽脊鍑虹獥鍙?/title> http://www.aygfsteel.com/xiaocai/archive/2007/08/15/136859.html灝忚彍 灝忚彍 Wed, 15 Aug 2007 03:39:00 GMT http://www.aygfsteel.com/xiaocai/archive/2007/08/15/136859.html http://www.aygfsteel.com/xiaocai/comments/136859.html http://www.aygfsteel.com/xiaocai/archive/2007/08/15/136859.html#Feedback 1 http://www.aygfsteel.com/xiaocai/comments/commentRss/136859.html http://www.aygfsteel.com/xiaocai/services/trackbacks/136859.html
璇烽珮鎵嬩滑鎸囨暀鍟婏紒錛侊紒
闃呰鍏ㄦ枃 ]]>
主站蜘蛛池模板:
江川县 |
堆龙德庆县 |
德庆县 |
松溪县 |
榆社县 |
西安市 |
黄浦区 |
乃东县 |
拉萨市 |
江城 |
沿河 |
扬中市 |
江孜县 |
彭泽县 |
黄山市 |
赞皇县 |
中卫市 |
武隆县 |
江阴市 |
仪征市 |
泾川县 |
嘉禾县 |
体育 |
宝丰县 |
乌恰县 |
大田县 |
安岳县 |
介休市 |
衡南县 |
台北市 |
灌云县 |
防城港市 |
逊克县 |
新干县 |
茶陵县 |
南漳县 |
濮阳市 |
苍山县 |
阜南县 |
庆安县 |
广平县 |