小智 8
将图像加载到缓冲图像中,然后从中获取数据
BufferedImage img = null;
try {
img = ImageIO.read(new File ("c:/imageFile.gif"));
} catch(Exception e) {}
Raster R=img.getData();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6932 次 |
| 最近记录: |