[Qgis-developer] saveAsImage() in printcomposer
Richard Duivenvoorde
rdmailings at duif.net
Sat Apr 25 17:27:51 EDT 2009
I stumbled upon this wish of a user:
https://trac.osgeo.org/qgis/ticket/1528
This user wants to use the HtmlImageMaplugin based on a printcomposition
build in composer. That is with a legend, scalebar and possible
annotations etc
The plugin itself is not very complex: rip an image of current canvas,
and html-ify the active layer.
Question now: can I do the same for the printcomposer (can't find a
'saveAsImage()' around there :-)
It's not clear to me if I should paint the different composer-items one
by one myself, or that I can take the 'ground-paint-device' and "...copy
the saveAsImage from the qgsmapcanvas...and make it public via the
python interface....) (though those are pretty big steps for me anyway...).
Can somebody shed some light on this?
Regards,
Richard Duivenvoorde
More information about the Qgis-developer
mailing list