摘自aardio培訓群 www.aardio.com ...
import process; import fsys.stream; import gdip.bitmap; import inet.http; //獲取一個網路圖片 var pngData = inet.http().get("http://www.baidu.com/img/baidu_logo.gif"); //轉換為GDI對象處理 var bitmap = gdip.bitmap( pngData ); //轉換為文件流 var stream = fsys.stream(); bitmap.saveToStream(stream,"*.png"); //獲取圖片字元串 保存到本地 var str = stream.readAll(); string.save("/test.png",str ); process.explore_select("/test.png");
摘自aardio培訓群 www.aardio.com