Class: QgsMaskRenderSettings¶
Contains settings regarding how masks are calculated and handled during a map render.
Added in version 3.38.
Methods
Sets a simplification tolerance (in painter units) to use for on-the-fly simplification of mask paths while rendering. |
|
Returns the simplification tolerance (in painter units) to use for on-the-fly simplification of mask paths while rendering. |
- class qgis.core.QgsMaskRenderSettings[source]¶
Bases:
object
- setSimplificationTolerance(self, tolerance: float)[source]¶
Sets a simplification tolerance (in painter units) to use for on-the-fly simplification of mask paths while rendering.
This will result in simpler, generalised paths.
Set
tolerance
to 0 to disable simplification. (No simplification is the default behavior).Note
This property is only used when exporting to vector formats, and is ignored during raster format based rendering.
See also
- Parameters:
tolerance (float)
- simplifyTolerance(self) float [source]¶
Returns the simplification tolerance (in painter units) to use for on-the-fly simplification of mask paths while rendering.
A tolerance of 0 indicates no simplification. (No simplification is the default behavior).
Note
This property is only used when exporting to vector formats, and is ignored during raster format based rendering.
See also
- Return type:
float