[Qgis-developer] New watermark plugin using QgsPluginLayer

Mathias Walker mwa at sourcepole.ch
Fri Jan 29 10:49:15 EST 2010


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
-- 
Sourcepole -  Linux & Open Source Solutions
Elestastr. 18   7310 Bad Ragaz  Switzerland
Tel: 081 330 77 11       Fax: 081 330 77 12
mwa at sourcepole.ch  http://www.sourcepole.ch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100129/3654508d/attachment.bin


More information about the Qgis-developer mailing list