diff options
author | Roman Kennke <roman@kennke.org> | 2006-06-27 14:51:36 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2006-06-27 14:51:36 +0000 |
commit | 10c973c8e2cd9e4573dd9c35dc506b8657395da0 (patch) | |
tree | fc6fffca3aff4ae864a962e546821db9484a3d00 /java | |
parent | 04b7d08c6bd6e3d63dcce9557f5f53e729e1fc6d (diff) | |
download | classpath-10c973c8e2cd9e4573dd9c35dc506b8657395da0.tar.gz |
2006-06-27 Roman Kennke <kennke@aicas.com>
* java/awt/image/BufferedImage.java
(getSource): Use a fixed DirectColorModel to deliver the
RGB pixels to the ImageConsumer.
Diffstat (limited to 'java')
-rw-r--r-- | java/awt/image/BufferedImage.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/awt/image/BufferedImage.java b/java/awt/image/BufferedImage.java index 77b8d6cc1..0b0730009 100644 --- a/java/awt/image/BufferedImage.java +++ b/java/awt/image/BufferedImage.java @@ -504,7 +504,10 @@ public class BufferedImage extends Image int[] pixels = getRGB(x, y, width, height, (int[])null, offset, stride); - ColorModel model = getColorModel(); + // We already convert the color to RGB in the getRGB call, so + // we pass a simple RGB color model to the consumers. + ColorModel model = new DirectColorModel(32, 0xff0000, 0xff00, 0xff, + 0xff000000); consumers.add(ic); |