diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2009-08-21 23:24:58 +0200 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2009-08-21 23:24:58 +0200 |
commit | b63c944dbb666d7822ebd57a4a7ea2ced4036656 (patch) | |
tree | 7ddbc94b3d7a57b17c282f98f875046cbb0c6aa9 /src | |
parent | ee4e0002025099edd716bbd5b5c4f21b467ac7ab (diff) | |
download | dbmodel-b63c944dbb666d7822ebd57a4a7ea2ced4036656.tar.xz |
Propert 8bit conversion, the default method uses weird dithering
Diffstat (limited to 'src')
-rw-r--r-- | src/export/pngexporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/export/pngexporter.cpp b/src/export/pngexporter.cpp index 67725b7..ffb9c4e 100644 --- a/src/export/pngexporter.cpp +++ b/src/export/pngexporter.cpp @@ -45,5 +45,5 @@ PngExporter::exportToFile(const QString &fileName, DiagramDocument *document) document->print(&painter, image.rect(), boundingRect); - image.convertToFormat(QImage::Format_Indexed8).save(fileName, "PNG"); + image.convertToFormat(QImage::Format_Indexed8, Qt::ThresholdDither | Qt::AvoidDither).save(fileName, "PNG"); } |