Skip to content
Permalink
Browse files

[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 dc58c1ad155d0e99549c64373f1c38dd6b525e45
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/plugins/processing/algs/qgis/Rasterize.py
@@ -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
@@ -195,6 +196,7 @@ def processAlgorithm(self, parameters, context, feedback):


class TileSet():

"""
A set of tiles
"""
@@ -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)

0 comments on commit dc58c1a

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