Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] fix non-normal blending composition for the rasterzie alg
  • Loading branch information
nirvn authored and m-kuhn committed Aug 10, 2017
1 parent 6186c0f commit dc58c1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/plugins/processing/algs/qgis/Rasterize.py
Expand Up @@ -57,6 +57,7 @@


class RasterizeAlgorithm(QgisAlgorithm):

"""Processing algorithm renders map canvas to a raster file.
It's possible to choose the following parameters:
- Map theme to render
Expand Down Expand Up @@ -195,6 +196,7 @@ def processAlgorithm(self, parameters, context, feedback):


class TileSet():

"""
A set of tiles
"""
Expand Down Expand Up @@ -236,11 +238,11 @@ def __init__(self, map_theme, layer, extent, tile_size, mupp, output,
self.dataset.SetGeoTransform(
[extent.xMinimum(), mupp, 0, extent.yMaximum(), 0, -mupp])

self.image = QImage(QSize(tile_size, tile_size), QImage.Format_RGB32)
self.image = QImage(QSize(tile_size, tile_size), QImage.Format_ARGB32)

self.settings = QgsMapSettings()
self.settings.setOutputDpi(self.image.logicalDpiX())
self.settings.setOutputImageFormat(QImage.Format_RGB32)
self.settings.setOutputImageFormat(QImage.Format_ARGB32)
self.settings.setDestinationCrs(crs)
self.settings.setOutputSize(self.image.size())
self.settings.setFlag(QgsMapSettings.Antialiasing, True)
Expand Down

0 comments on commit dc58c1a

Please sign in to comment.