Try using l_raster.renderer().setOpacity(0.5)

giovanni


2013/11/6 Geo DrinX <geodr...@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@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
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to