anImage1.setTransform( anImage1.transform() * aTranslate );
anImage2.setTransform( anImage2.transform() * aTranslate );
- QPixmap aResultImage( int(aBounds.width()), int(aBounds.height()) );
- aResultImage.fill( myBackground );
+ QImage aResultImage( int(aBounds.width()), int(aBounds.height()), QImage::Format_ARGB32 );
+ //QPixmap aResultImage( int(aBounds.width()), int(aBounds.height()) );
+ //aResultImage.fill( myBackground );
QPainter aPainter( &aResultImage );
- aPainter.setRenderHint( QPainter::SmoothPixmapTransform, true );
+ //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 );
QTransform aResultTransform = anImage1.transform();
aResultTransform.translate( aBounds.left(), aBounds.top() );
- aResult = aResultImage.toImage();
+ aResult = aResultImage;
aResult.setTransform( aResultTransform );
return aResult;