[QGIS Commit] r12816 - trunk/qgis/src/core/symbology-ng
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Jan 22 07:11:57 EST 2010
Author: mhugent
Date: 2010-01-22 07:11:57 -0500 (Fri, 22 Jan 2010)
New Revision: 12816
Modified:
trunk/qgis/src/core/symbology-ng/qgsfillsymbollayerv2.cpp
Log:
premultiplied image seems to work for svg fill
Modified: trunk/qgis/src/core/symbology-ng/qgsfillsymbollayerv2.cpp
===================================================================
--- trunk/qgis/src/core/symbology-ng/qgsfillsymbollayerv2.cpp 2010-01-22 10:34:07 UTC (rev 12815)
+++ trunk/qgis/src/core/symbology-ng/qgsfillsymbollayerv2.cpp 2010-01-22 12:11:57 UTC (rev 12816)
@@ -167,7 +167,7 @@
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
More information about the QGIS-commit
mailing list