You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/03/28 16:50:39 UTC
svn commit: r1827934 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImage.java
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);