-
JAVA Get Web ImageCode/JAVA 2010. 7. 6. 01:20
BaseCode :
private BufferedImage img;
private String url;
private URL u;
public test(int x, int y, String url){
this.x = x;
this.y = y;
this.url = url; // http://img0.gmodules.com/ig/images/korea/logo.gif
init();
}
public void init(){
try {
u = new URL(this.url);
img = ImageIO.read(u);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
WEB에 있는 이미지 를 마구 긁어 와주마!!!!'Code > JAVA' 카테고리의 다른 글
Java new frame is closed for parent frame (0) 2010.07.09 Android SDK Set for MAC (0) 2010.07.06 JAVA - image Motion (2) 2010.07.04 한쌍의 같은 값 만들기 (0) 2010.07.04 JAVA-based JVM ERROR (0) 2009.09.26