[Qgis-developer] How to Raster layer setTransparency with pyQGis 2 ?

Geo DrinX geodrinx at gmail.com
Wed Nov 6 03:53:07 PST 2013


Great, Giovanni !

Thank you

Roberto


2013/11/6 G. Allegri <giohappy at gmail.com>

> Try using l_raster.renderer().setOpacity(0.5)
>
> giovanni
>
>
> 2013/11/6 Geo DrinX <geodrinx at gmail.com>
>
>> Hello All,
>>
>>
>> pyQGis 2  changed many things  :(
>>
>> For example:  how is possible, now, to set the transparency of a raster ?
>>
>> Before, simply was:
>>
>> l_raster.setTransparency(50)
>>
>>
>> And now ?
>>
>> Thank you for any info about it
>>
>>
>> Roberto
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
>
> --
> Giovanni Allegri
> http://about.me/giovanniallegri
> blog: http://blog.spaziogis.it
> GEO+ geomatica in Italia http://bit.ly/GEOplus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131106/7b3d390a/attachment.html>


More information about the Qgis-developer mailing list