From b63c944dbb666d7822ebd57a4a7ea2ced4036656 Mon Sep 17 00:00:00 2001 From: Lukáš Lalinský Date: Fri, 21 Aug 2009 23:24:58 +0200 Subject: Propert 8bit conversion, the default method uses weird dithering --- src/export/pngexporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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"); } -- cgit v1.2.3-70-g09d2