Class: QgsDrawSourceEffect¶
A paint effect which draws the source picture with minor or no alterations.
The draw source effect can be used to draw an unaltered copy of the original source picture. Minor changes like lowering the opacity and applying a blend mode are supported, however these changes will force the resultant output to be rasterized. If no alterations are performed then the original picture will be rendered as a vector.
Class Hierarchy¶
Base classes¶
Base class for visual effects which can be applied to QPicture drawings. |
Methods
Returns the blend mode for the effect |
|
Returns the opacity for the effect |
|
Sets the blend mode for the effect |
|
Sets the opacity for the effect. |
Static Methods
Creates a new |
- class qgis.core.QgsDrawSourceEffect[source]¶
Bases:
QgsPaintEffect
- blendMode(self) QPainter.CompositionMode [source]¶
Returns the blend mode for the effect
- Return type:
QPainter.CompositionMode
- Returns:
blend mode used for drawing the source on to a destination paint device
See also
- static create(map: Dict[str, Any]) QgsPaintEffect | None [source]¶
Creates a new
QgsDrawSource
effect from a properties string map.- Parameters:
map (Dict[str, Any]) – encoded properties string map
- Return type:
Optional[QgsPaintEffect]
- Returns:
new QgsDrawSourceEffect
- opacity(self) float [source]¶
Returns the opacity for the effect
- Return type:
float
- Returns:
opacity value between 0 and 1 inclusive, where 0 is fully transparent and 1 is fully opaque
See also