Image processing for transparency renderer

This commit is contained in:
Jakub Melka
2021-02-21 16:42:24 +01:00
parent 114dfcb895
commit d632595710
6 changed files with 610 additions and 17 deletions

View File

@@ -39,6 +39,7 @@ namespace pdf
{
class PDFCMS;
class PDFMesh;
class PDFImage;
class PDFTilingPattern;
class PDFOptionalContentActivity;
@@ -508,6 +509,13 @@ protected:
/// clip along the path (intersect with current clipping path).
virtual void performClipping(const QPainterPath& path, Qt::FillRule fillRule);
/// Performs image processing on original image. If processor processes
/// original image, it should return true, so no conversion to QImage occurs,
/// which can be performance bottleneck.
/// \param image Image
/// \returns true, if image is successfully processed
virtual bool performOriginalImagePainting(const PDFImage& image);
/// This function has to be implemented in the client drawing implementation, it should
/// draw the image.
/// \param image Image to be painted