PixelGrabber.java (setPixels(int,int,int,int, ColorModel,byte[],int,int): Fixed byte to int conversion.
2005-04-20 Jeroen Frijters <jeroen@frijters.net> * java/awt/image/PixelGrabber.java (setPixels(int,int,int,int, ColorModel,byte[],int,int): Fixed byte to int conversion. From-SVN: r98448
This commit is contained in:
committed by
Michael Koch
parent
65d5bde825
commit
9db695c198
@@ -522,7 +522,7 @@ public class PixelGrabber implements ImageConsumer
|
||||
|
||||
assert (i >= 0 && i < int_pixel_buffer.length);
|
||||
assert (p >= 0 && p < pixels.length);
|
||||
int_pixel_buffer[i] = currentModel.getRGB (pixels[p]);
|
||||
int_pixel_buffer[i] = currentModel.getRGB (pixels[p] & 0xFF);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user