mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 12:50:33 +02:00
Ich hab mal kurz nen exporter geschriebn und seb ist nen nab
Jk ich meine basti 👍
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user