Skip to content
Permalink
Browse files

Start with transparent background with svg fill.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12810 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Jan 21, 2010
1 parent 2ddf77a commit d059f3289b0064a360c322301d90807f32ae838a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
@@ -166,7 +166,7 @@ void QgsSVGFillSymbolLayer::startRender( QgsSymbolV2RenderContext& context )
int pixelHeight = pixelWidth / mSvgViewBox.width() * mSvgViewBox.height();

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

//rasterise byte array to image
QPainter p( &textureImage );

0 comments on commit d059f32

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