Re: [OpenJDK 2D-Dev] MaskFill incorrect gamma correction (sRGB != linear RGB)

2014-08-14 Thread Laurent Bourgès
Hi, Here are questions about the java2d pipeline to understand how colors are handled as pixel values (conversions): - BufferedImage use by default the sRGB colorspace (non linear) so its raster data (RGBA) are encoded as int values (sRGB). What parts of the java2d pipeline handle color blending

Re: [OpenJDK 2D-Dev] [9] Review Request: 8042199 The build of J2DBench via makefile is broken after the JDK-8005402

2014-08-14 Thread Andrew Brygin
Hello Sergey, the change looks fine to me. Thanks, Andrew On 8/13/2014 4:31 AM, Sergey Bylokhov wrote: Hi Jim. Yes, you are right, I missed it even after attentive viewing. Typo was fixed: http://cr.openjdk.java.net/~serb/8042199/webrev.03 Hi Sergey, I understand that the type was changed

Re: [OpenJDK 2D-Dev] MaskFill incorrect gamma correction (sRGB != linear RGB)

2014-08-14 Thread Jim Graham
Hi Laurent, Java2D has color correction code in it, but it is only really hooked up to the specific color correction classes so it pretty much has to be manually invoked. The rendering pipeline usually punts on issues like color space other than if you specify an alternate color space for a