Ich hab mal kurz nen exporter geschriebn und seb ist nen nab

Jk ich meine basti 👍
This commit is contained in:
Jan Schuffenhauer
2019-12-05 14:00:20 +01:00
parent e881b5d16c
commit 6b599d429f
4 changed files with 377 additions and 16 deletions

View File

@@ -63,6 +63,11 @@ bool PaintingArea::saveImage(const QString &fileName, const char *fileFormat)
// Created to hold the image
QImage visibleImage = image->getDisplayable();
if(!std::strcmp(fileFormat,"PNG")){
visibleImage = visibleImage.convertToFormat(QImage::Format_Indexed8);
fileFormat = "png";
}
if (visibleImage.save(fileName, fileFormat)) {
return true;
} else {