[Qgis-developer] How to use QPixmap argument in saveAsImage()
Etienne Tourigny
etourigny.dev at gmail.com
Mon Jan 21 07:38:44 PST 2013
if using c++, just pass null (0) to the second argument (it's the
default argument if not present). If using python (you didn't specify
which), try None.
Etienne
On Mon, Jan 21, 2013 at 1:23 PM, Michael Röcke <vermesser at gmail.com> wrote:
> 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.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the Qgis-developer
mailing list