diff options
| author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-02-01 18:35:02 +0100 |
|---|---|---|
| committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-02-03 00:04:38 +0100 |
| commit | 97ca5f6161e905cf612dccfcf3ebdee8cd3ba807 (patch) | |
| tree | 5b3cbfbbc52bf8f4262a14031e439f4e3771b618 /src/gui/platform/unix/qgenericunixservices.cpp | |
| parent | 3a7cda715a9d409c249f91e320a9e1f8e9276f37 (diff) | |
QPdfWriter: use DeviceGray when in Grayscale mode
QPdfWriter has "always" supported a grayscale mode in order to
support grayscale printing from QPrinter. When in this mode,
colors were still emitted as RGB, just with equal quantities for
each channel.
But the PDF format itself supports grayscale colors, so
avoid the conversions and emit colors directly in that.
Change-Id: Id5ec3bc42b710909f32986c59d8fbd6f748e02f9
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/gui/platform/unix/qgenericunixservices.cpp')
0 files changed, 0 insertions, 0 deletions
