Class: QgsBlurEffect¶
A paint effect which blurs a source picture, using a number of different blur methods.
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 blur level (radius)  | 
|
Returns the map unit scale used for the blur strength (radius).  | 
|
Returns the blur method (algorithm) used for performing the blur.  | 
|
Returns the units used for the blur level (radius).  | 
|
Returns the opacity for the effect.  | 
|
Sets the blend mode for the effect  | 
|
Sets blur level (radius)  | 
|
Sets the map unit scale used for the blur strength (radius).  | 
|
Sets the blur method (algorithm) to use for performing the blur.  | 
|
Sets the units used for the blur level (radius).  | 
|
Sets the opacity for the effect.  | 
Static Methods
Creates a new   | 
Attributes
- class qgis.core.QgsBlurEffect[source]¶
 Bases:
QgsPaintEffect- class BlurMethod¶
 Bases:
int
- GaussianBlur = 1¶
 
- StackBlur = 0¶
 
- blendMode(self) QPainter.CompositionMode[source]¶
 Returns the blend mode for the effect
- Return type:
 QPainter.CompositionMode
- Returns:
 blend mode used for drawing the effect on to a destination paint device
See also
- blurLevel(self) float[source]¶
 Returns the blur level (radius)
- Return type:
 float
- Returns:
 blur level. Depending on the current
blurMethod(), this parameter has different effects
See also
See also
See also
See also
- blurMapUnitScale(self) QgsMapUnitScale¶
 Returns the map unit scale used for the blur strength (radius).
- Return type:
 - Returns:
 map unit scale for blur strength
See also
See also
See also
Added in version 3.4.9.
- blurMethod(self) QgsBlurEffect.BlurMethod[source]¶
 Returns the blur method (algorithm) used for performing the blur.
- Return type:
 - Returns:
 blur method
See also
- blurUnit(self) Qgis.RenderUnit[source]¶
 Returns the units used for the blur level (radius).
- Return type:
 - Returns:
 units for blur level
See also
See also
See also
Added in version 3.4.9.
- static create(map: Dict[str, Any]) QgsPaintEffect | None[source]¶
 Creates a new
QgsBlurEffecteffect from a properties string map.- Parameters:
 map (Dict[str, Any]) – encoded properties string map
- Return type:
 Optional[QgsPaintEffect]
- Returns:
 new QgsBlurEffect
- 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
- setBlendMode(self, mode: QPainter.CompositionMode)[source]¶
 Sets the blend mode for the effect
- Parameters:
 mode (QPainter.CompositionMode) – blend mode used for drawing the effect on to a destination paint device
See also
- setBlurLevel(self, level: float)[source]¶
 Sets blur level (radius)
- Parameters:
 level (float) – blur level. Depending on the current
blurMethod(), this parameter has different effects
See also
See also
See also
See also
- setBlurMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
 Sets the map unit scale used for the blur strength (radius).
- Parameters:
 scale (QgsMapUnitScale) – map unit scale for blur strength
See also
See also
See also
Added in version 3.4.9.
- setBlurMethod(self, method: QgsBlurEffect.BlurMethod)[source]¶
 Sets the blur method (algorithm) to use for performing the blur.
- Parameters:
 method (QgsBlurEffect.BlurMethod) – blur method
See also
- setBlurUnit(self, unit: Qgis.RenderUnit)[source]¶
 Sets the units used for the blur level (radius).
- Parameters:
 unit (Qgis.RenderUnit) – units for blur level
See also
See also
See also
Added in version 3.4.9.