Skip to content
Permalink
Browse files

premultiplied image seems to work for svg fill

git-svn-id: http://svn.osgeo.org/qgis/trunk@12816 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 22, 2010
1 parent 467ee66 commit 8c38d2d5c7163a313450a63378b2189e6ae72ec8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
@@ -167,7 +167,7 @@ void QgsSVGFillSymbolLayer::startRender( QgsSymbolV2RenderContext& context )
int pixelWidth = context.outputPixelSize( mPatternWidth );
int pixelHeight = pixelWidth / mSvgViewBox.width() * mSvgViewBox.height();

QImage textureImage( pixelWidth, pixelHeight, QImage::Format_ARGB32 );
QImage textureImage( pixelWidth, pixelHeight, QImage::Format_ARGB32_Premultiplied );
textureImage.fill( 0 ); // transparent background

//rasterise byte array to image

0 comments on commit 8c38d2d

Please sign in to comment.
You can’t perform that action at this time.