summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpdf_p.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2016-10-12 09:03:39 +0200
committerAndy Shaw <andy.shaw@qt.io>2016-10-19 15:48:31 +0000
commitb38145a11d03c3e3fe8baf37800a017359283861 (patch)
tree7d1d39bba7e92d5780e0d6d76045d3ae3d86527c /src/gui/painting/qpdf_p.h
parent6cfdfad7d41a7e452fa53495d9843c5d67e74946 (diff)
PDF: Handle monochrome images correctly
When an image is considered to be monochrome then it should not be making the white part of the image transparent, the colors should be kept as is. Task-number: QTBUG-56489 Change-Id: I3621ca7be2a0ebe6852363f860c0b3de28d28a31 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/painting/qpdf_p.h')
-rw-r--r--src/gui/painting/qpdf_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpdf_p.h b/src/gui/painting/qpdf_p.h
index de30744ca2..ab7a218d89 100644
--- a/src/gui/painting/qpdf_p.h
+++ b/src/gui/painting/qpdf_p.h
@@ -289,7 +289,7 @@ private:
int streampos;
int writeImage(const QByteArray &data, int width, int height, int depth,
- int maskObject, int softMaskObject, bool dct = false);
+ int maskObject, int softMaskObject, bool dct = false, bool isMono = false);
void writePage();
int addXrefEntry(int object, bool printostr = true);