AW: [Qgis-developer] Addition to QgsRenderContext
magnus at homann.se
Tue Aug 4 15:22:12 EDT 2009
Hugentobler Marco skrev:
> Hi Magnus
> How would you add the transparency to the render context?
> The rendercontext is meant to contain information about the rendering procedure as a whole (so not information that is layer or even symbol specific).
Thanks, I probably misunderstood the purpose of the render context.
Yes, the cache stores transparency, but to send the wanted transprancey down from QgsVectorLayer through QgsRenderer to QgsSymbol requiers an extra parameter in the interfaces. Maybe that's the best way?
Well, if we want to keep it within Qgsvectorlayer, we could:
1) Set alpha channel dynamically, or
2) Cache in QgsVectorLayer
More information about the Qgis-developer