gwlucastrig commented on a change in pull request #106:
URL: https://github.com/apache/commons-imaging/pull/106#discussion_r522424325
##########
File path:
src/main/java/org/apache/commons/imaging/formats/tiff/constants/TiffTagConstants.java
##########
@@ -347,6 +347,8 @@
public static final TagInfoShorts TIFF_TAG_EXTRA_SAMPLES = new
TagInfoShorts(
"ExtraSamples", 0x152, -1,
TiffDirectoryType.TIFF_DIRECTORY_ROOT);
+ public static final int EXTRA_SAMPLE_ASSOCIATED_ALPHA = 1;
+ public static final int EXTRA_SAMPLE_UNASSOCIATED_ALPHA = 2;
Review comment:
Associated and Unassociated are the names they use in the TIFF
specification. In playing with the Java BufferedImage class, there seems to be
a bias toward unassociated alpha (non-pre-multiplied). For example, at least
in the OpenJDK Java I use, if you have a pre-multiplied images and call getRGB
on it, the pixel values that come back are adjusted to look like
non-pre-multiplied.
Not sure I answered your question here.... Sorry.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]