Skip to content

Commit 523f804

Browse files
author
mhugent
committedJan 22, 2010
premultiplied image seems to work for svg fill
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12816 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/symbology-ng/qgsfillsymbollayerv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void QgsSVGFillSymbolLayer::startRender( QgsSymbolV2RenderContext& context )
167167
int pixelWidth = context.outputPixelSize( mPatternWidth );
168168
int pixelHeight = pixelWidth / mSvgViewBox.width() * mSvgViewBox.height();
169169

170-
QImage textureImage( pixelWidth, pixelHeight, QImage::Format_ARGB32 );
170+
QImage textureImage( pixelWidth, pixelHeight, QImage::Format_ARGB32_Premultiplied );
171171
textureImage.fill( 0 ); // transparent background
172172

173173
//rasterise byte array to image

0 commit comments

Comments
 (0)
Please sign in to comment.