使用java.awt.image.BufferedImage getSubimage()方法获取子图像时,子图像的颜色是错误的

时间:2015-10-22 03:46:42

标签: java image

使用java.awt.image.BufferedImage时getSubimage()方法 BufferedImage outImage = bufferedImage.getSubimage(x, y, width, height);要获得子图像,子图像的颜色是错误的。 enter image description here

如何在java中获得正确的彩色图像?

test image

P.S。将图像上传到imgur并使用从url下载的图像后,我发现子图像的颜色正确...请使用此图像http://img01.taobaocdn.com/tfscom/LB17L9HKXXXXXbhXXXXSutbFXXX

0 个答案:

没有答案