mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Rendering intents for images
This commit is contained in:
@ -39,18 +39,28 @@ public:
|
||||
/// \param stream Stream with image
|
||||
/// \param colorSpace Color space of the image
|
||||
/// \param isSoftMask Is it a soft mask image?
|
||||
/// \param renderingIntent Default rendering intent of the image
|
||||
/// \param errorReporter Error reporter for reporting errors (or warnings)
|
||||
static PDFImage createImage(const PDFDocument* document, const PDFStream* stream, PDFColorSpacePointer colorSpace, bool isSoftMask, PDFRenderErrorReporter* errorReporter);
|
||||
static PDFImage createImage(const PDFDocument* document,
|
||||
const PDFStream* stream,
|
||||
PDFColorSpacePointer colorSpace,
|
||||
bool isSoftMask,
|
||||
RenderingIntent renderingIntent,
|
||||
PDFRenderErrorReporter* errorReporter);
|
||||
|
||||
/// Returns image transformed from image data and color space
|
||||
QImage getImage() const;
|
||||
|
||||
/// Returns rendering intent of the image
|
||||
RenderingIntent getRenderingIntent() const { return m_renderingIntent; }
|
||||
|
||||
private:
|
||||
PDFImage() = default;
|
||||
|
||||
PDFImageData m_imageData;
|
||||
PDFImageData m_softMask;
|
||||
PDFColorSpacePointer m_colorSpace;
|
||||
RenderingIntent m_renderingIntent = RenderingIntent::Perceptual;
|
||||
};
|
||||
|
||||
} // namespace pdf
|
||||
|
Reference in New Issue
Block a user