Better handling of images

This commit is contained in:
Jakub Melka
2019-05-10 19:48:52 +02:00
parent 3358d49240
commit 4fa3c079f2
18 changed files with 331 additions and 29 deletions

View File

@@ -28,6 +28,7 @@ namespace pdf
{
class PDFStream;
class PDFDocument;
class PDFRenderErrorReporter;
class PDFImage
{
@@ -37,7 +38,8 @@ public:
/// \param document Document
/// \param stream Stream with image
/// \param colorSpace Color space of the image
static PDFImage createImage(const PDFDocument* document, const PDFStream* stream, PDFColorSpacePointer colorSpace);
/// \param errorReporter Error reporter for reporting errors (or warnings)
static PDFImage createImage(const PDFDocument* document, const PDFStream* stream, PDFColorSpacePointer colorSpace, PDFRenderErrorReporter* errorReporter);
/// Returns image transformed from image data and color space
QImage getImage() const;