mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #10: Ability to cancel the operation
This commit is contained in:
@ -745,12 +745,14 @@ PDFImage PDFImage::createImage(const PDFDocument* document,
|
||||
return image;
|
||||
}
|
||||
|
||||
QImage PDFImage::getImage(const PDFCMS* cms, PDFRenderErrorReporter* reporter) const
|
||||
QImage PDFImage::getImage(const PDFCMS* cms,
|
||||
PDFRenderErrorReporter* reporter,
|
||||
const PDFOperationControl* operationControl) const
|
||||
{
|
||||
const bool isImageMask = m_imageData.getMaskingType() == PDFImageData::MaskingType::ImageMask;
|
||||
if (m_colorSpace && !isImageMask)
|
||||
{
|
||||
return m_colorSpace->getImage(m_imageData, m_softMask, cms, m_renderingIntent, reporter);
|
||||
return m_colorSpace->getImage(m_imageData, m_softMask, cms, m_renderingIntent, reporter, operationControl);
|
||||
}
|
||||
else if (isImageMask)
|
||||
{
|
||||
|
Reference in New Issue
Block a user