pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1828725 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactory.java
Date Mon, 09 Apr 2018 14:23:39 GMT
Author: tilman
Date: Mon Apr  9 14:23:39 2018
New Revision: 1828725

URL: http://svn.apache.org/viewvc?rev=1828725&view=rev
Log:
PDFBOX-4184: add comment

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactory.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactory.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactory.java?rev=1828725&r1=1828724&r2=1828725&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactory.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactory.java
Mon Apr  9 14:23:39 2018
@@ -185,6 +185,7 @@ public final class LosslessFactory
         {
             bpc = 8;
             int dataType = alphaRaster.getDataBuffer().getDataType();
+            // for 16 bit images divide by 256 
             int shift = dataType == DataBuffer.TYPE_USHORT ? 8 : 0;
             for (int pixel : pixels)
             {



Mime
View raw message