]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fixed bug with transparent background. BR_hydro BR_hydro_v_0_1 BR_hydro_v_0_3
authorouv <ouv@opencascade.com>
Tue, 17 Sep 2013 11:04:06 +0000 (11:04 +0000)
committerouv <ouv@opencascade.com>
Tue, 17 Sep 2013 11:04:06 +0000 (11:04 +0000)
src/ImageComposer/ImageComposer_Operator.cxx

index 2e2aabf3d902f9c6f5a1171c95a537de87f949cb..8b893be32a3b5e2e9c5c5c6a8d1c1bf5ae329f23 100644 (file)
@@ -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<ImageComposer_Image>( anImage1 );
   anImage2Var.setValue<ImageComposer_Image>( anImage2 );