[Qgis-developer] How to use QPixmap argument in saveAsImage()

Michael Röcke vermesser at gmail.com
Mon Jan 21 07:23:44 PST 2013


First I placed my question here:
http://gis.stackexchange.com/questions/31972/is-it-possible-to-take-automatically-a-screenshot-of-my-selected-feature-in-qg
<http://gis.stackexchange.com/questions/31972/is-it-possible-to-take-automatically-a-screenshot-of-my-selected-feature-in-qg>  
But after finding this old thread I decided to ask over here.

How can I save a JPG instead of an PNG?
QgsMapCanvas.saveAsImage (QString theFileName, QPixmap *QPixmap=0,
QString="PNG")

I know that I can use "JPG" as third parameter, but I dont know how to
define the QPixmap that is excatly the same like the actual map window in
qgis.

Thanks for help.
Micha



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-use-QPixmap-argument-in-saveAsImage-tp4112041p5028740.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list