public static PixelGrabber getPixelGrabber(Image image, String location)
{
PixelGrabber pixelGrabber = new PixelGrabber(image, 0, 0, -1, -1, true);
try
{
pixelGrabber.grabPixels();
}
catch (InterruptedException interruptedException)
{
if (Trace.error)
{
interruptedException.printStackTrace();
}
throw new RuntimeException("Failed to grab pixels for image " + location);
}
if (((pixelGrabber.getStatus() & ImageObserver.WIDTH) == 0) ||
((pixelGrabber.getStatus() & ImageObserver.HEIGHT) == 0))
{
throw new RuntimeException("Failed to grab pixels for image " + location);
}
return pixelGrabber;
}
ImageUtil.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:feathers-sdk
作者:
评论列表
文章目录