Class: QgsMaskRenderSettings

class qgis.core.QgsMaskRenderSettings

Bases: sip.wrapper

Contains settings regarding how masks are calculated and handled during a map render.

Added in version 3.38:

Methods

setSimplificationTolerance

Sets a simplification tolerance (in painter units) to use for on-the-fly simplification of mask paths while rendering.

simplifyTolerance

Returns the simplification tolerance (in painter units) to use for on-the-fly simplification of mask paths while rendering.

setSimplificationTolerance(self, tolerance: float)

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.

Parameters:

tolerance (float)

simplifyTolerance(self) float

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.

Return type:

float