[OpenJDK 2D-Dev] Review Request for JDK-7116979 : Unexpected pixel colour when converting images to TYPE_BYTE_INDEXED
Jayathirth D V
jayathirth.d.v at oracle.com
Thu Feb 11 14:37:56 UTC 2016
Please review the following fix in JDK9:
Bug : https://bugs.openjdk.java.net/browse/JDK-7116979
Webrev : http://cr.openjdk.java.net/~jdv/7116979/webrev.00/
Issue : When Image containing black pixels are converted from any format to Byte Indexed format some of the pixels are not black. They are following pattern similar to dithering.
Root cause : When we convert any format type to ByteIndexed we are adding Error delta values to R,G,B components using dithering indices. This is causing some pixels values to not point to proper index in color table.
Solution : There is no need to add error delta for primary colors containing basic values in R,G,B components. Exclude such pixels from delta addition.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the 2d-dev