Skip to content
Permalink
Browse files

Merge pull request #2756 from Gustry/transparency

fix transparency in qgsmaprenderer
  • Loading branch information
nyalldawson committed Feb 7, 2016
2 parents 0044666 + 4755f7b commit 33c37d0cb2e122ec2110ef6fe3823384ebe78abc
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/core/qgsmaprendererjob.cpp
  2. +1 −0 src/core/qgsmaprenderersequentialjob.cpp
@@ -350,7 +350,7 @@ void QgsMapRendererJob::cleanupJobs( LayerRenderJobs& jobs )
QImage QgsMapRendererJob::composeImage( const QgsMapSettings& settings, const LayerRenderJobs& jobs )
{
QImage image( settings.outputSize(), settings.outputImageFormat() );
image.fill( settings.backgroundColor().rgb() );
image.fill( settings.backgroundColor().rgba() );

QPainter painter( &image );

@@ -31,6 +31,7 @@ QgsMapRendererSequentialJob::QgsMapRendererSequentialJob( const QgsMapSettings&
mImage = QImage( mSettings.outputSize(), mSettings.outputImageFormat() );
mImage.setDotsPerMeterX( 1000 * settings.outputDpi() / 25.4 );
mImage.setDotsPerMeterY( 1000 * settings.outputDpi() / 25.4 );
mImage.fill( Qt::transparent );
}

QgsMapRendererSequentialJob::~QgsMapRendererSequentialJob()

0 comments on commit 33c37d0

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