Skip to content
Permalink
Browse files

fix transparency in qgsmaprenderer

  • Loading branch information
Gustry committed Feb 2, 2016
1 parent c3ed6b9 commit 86f97d1bd992b76bb402fa12b263fa207e0cb2c6
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( settings.backgroundColor().rgba() );
}

QgsMapRendererSequentialJob::~QgsMapRendererSequentialJob()

0 comments on commit 86f97d1

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