summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2006-06-27 14:51:36 +0000
committerRoman Kennke <roman@kennke.org>2006-06-27 14:51:36 +0000
commit10c973c8e2cd9e4573dd9c35dc506b8657395da0 (patch)
treefc6fffca3aff4ae864a962e546821db9484a3d00 /java
parent04b7d08c6bd6e3d63dcce9557f5f53e729e1fc6d (diff)
downloadclasspath-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.java5
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);