[Qgis-developer] How to saveAsImage the canvas without background color ?

Geo DrinX geodrinx at gmail.com
Fri May 8 03:13:22 PDT 2015


Hello,

I need to save a PNG of QGIS canvas, but I need an empty background color
(like a glass window)

If I use :

mapCanvas.saveAsImage(input_file, None, "PNG")

I obtain a white background (like a piece of paper).


What is the correct settings to have a  break through   effect  in my image
?



Thank you for any info about this


Roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150508/5ab9d15e/attachment.html>


More information about the Qgis-developer mailing list