| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 532 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺ΪʲôͼƬÎÞ·¨ÏÔʾ°¡
Ö»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
ÖíÒ²´ÏÃ÷
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º156
ר¼Ò·Ö£º0
×¢¡¡²á£º2005-5-16
ÊÕ²Ø
 ÎÊÌâµãÊý£º0 »Ø¸´´ÎÊý£º1 
ΪʲôͼƬÎÞ·¨ÏÔʾ°¡
package fish;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class internetfish extends JFrame{


public static void main(String []args){
internetfish fish=new internetfish();
fish.setVisible(true);
fish.getContentPane().add(new image2cvs());

}
}
class image2cvs extends Canvas{ //»­²¼
Image img,fish;
Image cacheimage;
Graphics gs;
image2cvs(){

setSize(800,478);
Toolkit tl=getToolkit();
img=tl.getImage("images/sea.jpg");//ÔØÈë±³¾°Í¼

}
public void paint(Graphics g){
int wt=getWidth();
int ht=getHeight();
cacheimage=createImage(wt,ht);
gs=cacheimage.getGraphics();
gs.drawImage(img,0,0,this);
}
}
ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: fish¡¡import¡¡awt¡¡java¡¡
2006-05-13 17:45
ǧÀï±ù·â
Rank: 16Rank: 16Rank: 16Rank: 16
À´¡¡×Ô£º¹àˮ֮Íõ
µÈ¡¡¼¶£º°æÖ÷
Íþ¡¡Íû£º155
Ìû¡¡×Ó£º28477
ר¼Ò·Ö£º59
×¢¡¡²á£º2006-2-26
ÊÕ²Ø
µÃ·Ö:0 
public void paint(Graphics g){
ÄãÖ±½ÓÓÃgÀ´»æÖƲ»¾Í¿ÉÒÔÁËÂð

¿Éϧ²»ÊÇÄã,ÅãÎÒµ½×îºó
2006-05-13 18:37
¿ìËٻظ´£ºÎªÊ²Ã´Í¼Æ¬ÎÞ·¨ÏÔʾ°¡
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



¹ØÓÚÎÒÃÇ | ¹ã¸æºÏ×÷ | ±à³ÌÖйú | Çå³ýCookies | TOP | ÊÖ»ú°æ

±à³ÌÖйú °æȨËùÓУ¬²¢±£ÁôËùÓÐȨÀû¡£
Powered by Discuz, Processed in 0.032233 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved