pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1827934 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java
Date Wed, 28 Mar 2018 16:50:39 GMT
Author: tilman
Date: Wed Mar 28 16:50:39 2018
New Revision: 1827934

URL: http://svn.apache.org/viewvc?rev=1827934&view=rev
Log:
PDFBOX-4171: inline images don't have a color key mask

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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java?rev=1827934&r1=1827933&r2=1827934&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java
Wed Mar 28 16:50:39 2018
@@ -346,13 +346,13 @@ public final class PDInlineImage impleme
     @Override
     public BufferedImage getImage() throws IOException
     {
-        return SampledImageReader.getRGBImage(this, getColorKeyMask());
+        return SampledImageReader.getRGBImage(this, null);
     }
 
     @Override
     public BufferedImage getImage(Rectangle region, int subsampling) throws IOException
     {
-        return SampledImageReader.getRGBImage(this, region, subsampling, getColorKeyMask());
+        return SampledImageReader.getRGBImage(this, region, subsampling, null);
     }
 
     @Override
@@ -370,7 +370,9 @@ public final class PDInlineImage impleme
      * there is none.
      *
      * @return Mask Image XObject
+     * @deprecated inline images don't have a color key mask.
      */
+    @Deprecated
     public COSArray getColorKeyMask()
     {
         COSBase mask = parameters.getDictionaryObject(COSName.IM, COSName.MASK);



Mime
View raw message