pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java?rev=1827933&r1=1827932&r2=1827933&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java
Wed Mar 28 16:50:25 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
@@ -366,22 +366,6 @@ public final class PDInlineImage impleme
     }
 
     /**
-     * Returns the color key mask array associated with this image, or null if
-     * there is none.
-     *
-     * @return Mask Image XObject
-     */
-    public COSArray getColorKeyMask()
-    {
-        COSBase mask = parameters.getDictionaryObject(COSName.IM, COSName.MASK);
-        if (mask instanceof COSArray)
-        {
-            return (COSArray) mask;
-        }
-        return null;
-    }
-
-    /**
      * Returns the suffix for this image type, e.g. jpg/png.
      *
      * @return The image suffix.



Mime
View raw message