summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.h
diff options
context:
space:
mode:
authorAndre de la Rocha <andre.rocha@qt.io>2018-09-07 19:16:23 +0200
committerAndre de la Rocha <andre.rocha@qt.io>2018-10-25 22:03:23 +0000
commit9cd527bc1f384926985d63c741641316a66f17a4 (patch)
treebead94ef8e91053650bdb93e87940bd16b8a0022 /src/gui/painting/qpainter.h
parent5ea233ca6782eb27adf596515cb66ef3dadc1d5e (diff)
Add support for generating PDFs with losslessly encoded images
This patch adds the QPainter::LosslessImageRendering flag to QPainter::RenderHints and allows QPdfEngine to recognize it and encode images using a lossless data compression algorithm provided by zlib instead of using lossy JPEG compression, which can produce artifacts with some images. Task-number: QTBUG-54809 Change-Id: If9e2bc64da3bf3afcd5d6c74f0ee82336ef05a19 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/painting/qpainter.h')
-rw-r--r--src/gui/painting/qpainter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.h b/src/gui/painting/qpainter.h
index 482f5fb63d..87c4899f0b 100644
--- a/src/gui/painting/qpainter.h
+++ b/src/gui/painting/qpainter.h
@@ -91,7 +91,8 @@ public:
SmoothPixmapTransform = 0x04,
HighQualityAntialiasing = 0x08,
NonCosmeticDefaultPen = 0x10,
- Qt4CompatiblePainting = 0x20
+ Qt4CompatiblePainting = 0x20,
+ LosslessImageRendering = 0x40,
};
Q_FLAG(RenderHint)