mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-03-04 11:27:44 +01:00
Issue #50: Image mask fix
This commit is contained in:
parent
8acf688f0f
commit
cd4ff6c033
@ -129,7 +129,7 @@ PDFImage PDFImage::createImage(const PDFDocument* document,
|
||||
}
|
||||
else if (object.isStream())
|
||||
{
|
||||
PDFImage softMaskImage = createImage(document, object.getStream(), colorSpace, false, renderingIntent, errorReporter);
|
||||
PDFImage softMaskImage = createImage(document, object.getStream(), PDFColorSpacePointer(new PDFDeviceGrayColorSpace()), false, renderingIntent, errorReporter);
|
||||
|
||||
if (softMaskImage.m_imageData.getMaskingType() != PDFImageData::MaskingType::ImageMask ||
|
||||
softMaskImage.m_imageData.getColorChannels() != 1 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user