Preparation for ICC based color profiles

This commit is contained in:
Jakub Melka
2019-12-25 18:42:54 +01:00
parent d951a70014
commit 70daaac841
4 changed files with 33 additions and 5 deletions

View File

@ -510,7 +510,7 @@ private:
using Ranges = std::array<PDFColorComponent, MAX_COLOR_COMPONENTS * 2>;
public:
explicit PDFICCBasedColorSpace(PDFColorSpacePointer alternateColorSpace, Ranges range);
explicit PDFICCBasedColorSpace(PDFColorSpacePointer alternateColorSpace, Ranges range, QByteArray iccProfileData);
virtual ~PDFICCBasedColorSpace() = default;
virtual QColor getDefaultColor(const PDFCMS* cms, RenderingIntent intent, PDFRenderErrorReporter* reporter) const override;
@ -527,6 +527,8 @@ public:
private:
PDFColorSpacePointer m_alternateColorSpace;
Ranges m_range;
QByteArray m_iccProfileData;
QByteArray m_iccProfileDataChecksum;
};
class PDFIndexedColorSpace : public PDFAbstractColorSpace