diff --git a/src/Image.cpp b/src/Image.cpp index beb7bfc..396f4b2 100644 --- a/src/Image.cpp +++ b/src/Image.cpp @@ -411,3 +411,19 @@ Image Image::optimize_filesize( Format format ) const{ return copy.remove_transparent(); } +bool Image::mustKeepAlpha() const{ + auto img = qimg(); + int width = img.width(), height = img.height(); + + for( int iy=0; iy" ) - .arg( name ).arg( primitives[layer].get_pos().x() ).arg( primitives[layer].get_pos().y() ); + stack += QString( "" ) + .arg( composition ) + .arg( name ) + .arg( primitives[layer].get_pos().x() ) + .arg( primitives[layer].get_pos().y() ) + ; } stack += "";