锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品久久对白,久久精品人人爽,国产欧美日韩三区http://www.aygfsteel.com/xiaocai/category/25037.html鐢熸椿灝辨槸涓鏉尪zh-cnSat, 18 Aug 2007 04:35:37 GMTSat, 18 Aug 2007 04:35:37 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 杞達紙瀹藉害錛変笂鐨勭殑緙╂斁姣斾緥銆?
* @param yscale 鍥懼儚 y 杞達紙楂樺害錛変笂鐨勭殑緙╂斁姣斾緥銆?
* @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簺綰補鐨勩佸彲緇樺埗鍥懼艦鐨勫璞★紝AWT 浣跨敤浜嗕竴縐嶇畝鍗曠殑妯″紡銆傛瘡涓?AWT 鏋勪歡瀹屽叏鏉ヨ嚜浜庡畠鑷繁鐨?java.awt.Graphics 瀵硅薄銆?/p>

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

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

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 鏂規硶

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縐嶆柟娉曪細

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

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

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

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

    閫氳繃浣跨敤 琛ㄤ簩 鐨勬柟娉曞緱鍒扮殑 Graphics 鐨勫璞′嬌鐢ㄥ畬鍚庨渶瑕佽皟鐢?Graphics.dispose() 鏂規硶澶勭悊銆?/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) 鐨勫潗鏍囷紝浣嗘槸鍓創鐭╁艦杞崲涓哄師鍓創鐭╁艦鍜屾寚瀹氱煩褰㈢殑浜ら泦銆?/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></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>