Re: [OpenJDK 2D-Dev] [11] RFR JDK-6788458: PNGImageReader ignores tRNS chunk while reading non-indexed RGB images

2018-04-06 Thread Jayathirth D V
Hi Prahalad, Thanks for your inputs. Regarding : File: PNGImageReader.java Line: 1329, 1342 . The else block for if (check for transparent pixel) is redundant across both PNG_COLOR_RGB and PNG_COLOR_GRAY. . We could use Arrays.fill with opaque value and set the alpha to 0 if pixel is

Re: [OpenJDK 2D-Dev] [11] RFR JDK-6788458: PNGImageReader ignores tRNS chunk while reading non-indexed RGB images

2018-04-06 Thread Prahalad Kumar Narayanan
Hello Jay Good day to you. I looked into the latest changes. The code changes are nearly complete. Just a few tweaks. File: PNGImageReader.java Line: 1280 Rephrase from: /* * In case of colortype PNG_COLOR_RGB or PNG_COLOR_GRAY * if we have