Skip to content

Commit dc58c1a

Browse files
nirvnm-kuhn
authored andcommittedAug 10, 2017
[processing] fix non-normal blending composition for the rasterzie alg
1 parent 6186c0f commit dc58c1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎python/plugins/processing/algs/qgis/Rasterize.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858

5959
class RasterizeAlgorithm(QgisAlgorithm):
60+
6061
"""Processing algorithm renders map canvas to a raster file.
6162
It's possible to choose the following parameters:
6263
- Map theme to render
@@ -195,6 +196,7 @@ def processAlgorithm(self, parameters, context, feedback):
195196

196197

197198
class TileSet():
199+
198200
"""
199201
A set of tiles
200202
"""
@@ -236,11 +238,11 @@ def __init__(self, map_theme, layer, extent, tile_size, mupp, output,
236238
self.dataset.SetGeoTransform(
237239
[extent.xMinimum(), mupp, 0, extent.yMaximum(), 0, -mupp])
238240

239-
self.image = QImage(QSize(tile_size, tile_size), QImage.Format_RGB32)
241+
self.image = QImage(QSize(tile_size, tile_size), QImage.Format_ARGB32)
240242

241243
self.settings = QgsMapSettings()
242244
self.settings.setOutputDpi(self.image.logicalDpiX())
243-
self.settings.setOutputImageFormat(QImage.Format_RGB32)
245+
self.settings.setOutputImageFormat(QImage.Format_ARGB32)
244246
self.settings.setDestinationCrs(crs)
245247
self.settings.setOutputSize(self.image.size())
246248
self.settings.setFlag(QgsMapSettings.Antialiasing, True)

0 commit comments

Comments
 (0)