[Qgis-developer] New watermark plugin using QgsPluginLayer

Giovanni Manghi giovanni.manghi at gmail.com
Fri Jan 29 11:10:58 EST 2010


forget it, I didn't noticed that qgis required version is 1.5

On trunk it installs fine.


cheers

-- Giovanni --


On Fri, 2010-01-29 at 16:49 +0100, Mathias Walker wrote:
> We have added a watermark plugin to the Sourcepole repository, showing the 
> basic usage of the recently added QgsPluginLayer. With this plugin you can add 
> a layer showing a semitransparent user-defined image in the lower left corner 
> of the map.
> 
> The tricky bit was calculating the scaling and dimensions of the painter area 
> in draw(), so the watermark is also rendered correctly in the print composer. 
> This calculation could eventually be moved to QgsPluginLayer.
> There is still the issue of the unscaled rendering in the print composer 
> preview.
> 
> You can find the plugin sources at
> http://github.com/pka/qgis-watermark-plugin
> 
> Best regards
> Mathias Walker
> _______________________________________________
> 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