From 8e663d7edc6db79b1a2ee29dab787bc05d48de86 Mon Sep 17 00:00:00 2001 From: Sonaion Date: Thu, 5 Dec 2019 14:44:00 +0100 Subject: [PATCH] right saving --- IntelliPhoto/Painting/IntelliPhoto.pro.user | 2 +- IntelliPhoto/Painting/Layer/PaintingArea.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/IntelliPhoto/Painting/IntelliPhoto.pro.user b/IntelliPhoto/Painting/IntelliPhoto.pro.user index be04963..1486bb9 100644 --- a/IntelliPhoto/Painting/IntelliPhoto.pro.user +++ b/IntelliPhoto/Painting/IntelliPhoto.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/IntelliPhoto/Painting/Layer/PaintingArea.cpp b/IntelliPhoto/Painting/Layer/PaintingArea.cpp index f08c4f1..f1a228d 100644 --- a/IntelliPhoto/Painting/Layer/PaintingArea.cpp +++ b/IntelliPhoto/Painting/Layer/PaintingArea.cpp @@ -287,7 +287,11 @@ void PaintingArea::resizeImage(QImage *image_res, const QSize &newSize){ } void PaintingArea::assembleLayers(bool forSaving){ - Canvas->fill(Qt::GlobalColor::black); + if(forSaving){ + Canvas->fill(Qt::GlobalColor::transparent); + }else{ + Canvas->fill(Qt::GlobalColor::black); + } //TODO interpolation of alpha for saving for(size_t i=0; isetPixelColor(layer.widthOffset+x, layer.heightOffset+y, clr_0); }