[OpenJDK 2D-Dev] ImageIO.read(jpeg): different RGB from OpenJDK and Oracle Java

Brian Burkhalter brian.burkhalter at oracle.com
Mon Sep 18 18:55:30 UTC 2017


On Sep 18, 2017, at 9:15 AM, Phil Race <philip.race at oracle.com> wrote:

> FWIW I think the difference that matters is that OpenJDK has different colour profile files,
> so even though they are processed by the same code the results may be different.
> 
>>> On 9/17/17 2:55 PM, Bill Ross wrote:
>>>>                 out.println("" + buffered.getRGB(i, j));
>>>> 
To get at the raw pixel data you would want to do for example:

int[] iArray = new int[3];

	buffered.getData().getPixel(i, j, iArray);

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20170918/ee9b551a/attachment.html>


More information about the 2d-dev mailing list