JAVA实现截取网页图片

代码段:

public static int GetPic(String URL,String ADid){

 String path=CatPath+"iecapt.exe";

 Process pro = null;

 try {

 pro = Runtime.getRuntime().exec(path + " " + URL + " " + CatPath + ADid + ".jpg");

 pro.waitFor();

 }catch(IOException e){ 

 } catch (InterruptedException e) {

 } 

 return 0;

 }


 

你可能感兴趣的:(JAVA实现截取网页图片)