Issue #10: Ability to cancel the operation

This commit is contained in:
Jakub Melka
2022-02-04 20:03:23 +01:00
parent 284f0c4db8
commit 49cab7937a
15 changed files with 302 additions and 61 deletions

View File

@ -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)
{