From 99b5bfdccf06a812e8a4332474b74019d03c93a8 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 17 Sep 2013 11:04:06 +0000 Subject: [PATCH] Fixed bug with transparent background. --- src/ImageComposer/ImageComposer_Operator.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ImageComposer/ImageComposer_Operator.cxx b/src/ImageComposer/ImageComposer_Operator.cxx index 2e2aabf3d..8b893be32 100644 --- a/src/ImageComposer/ImageComposer_Operator.cxx +++ b/src/ImageComposer/ImageComposer_Operator.cxx @@ -73,16 +73,13 @@ ImageComposer_Image ImageComposer_Operator::process( const QVariant& theObj1, anImage2.setTransform( anImage2.transform() * aTranslate ); QImage aResultImage( int(aBounds.width()), int(aBounds.height()), QImage::Format_ARGB32 ); - //QPixmap aResultImage( int(aBounds.width()), int(aBounds.height()) ); - //aResultImage.fill( myBackground ); + aResultImage.fill( myBackground ); QPainter aPainter( &aResultImage ); //aPainter.setRenderHint( QPainter::SmoothPixmapTransform, true ); aPainter.setRenderHint( QPainter::Antialiasing, true ); aPainter.setRenderHint( QPainter::HighQualityAntialiasing, true ); - aPainter.fillRect( QRect( 0, 0, int(aBounds.width()), int(aBounds.height()) ), myBackground ); - anImage1Var.setValue( anImage1 ); anImage2Var.setValue( anImage2 ); -- 2.39.2