Class: QgsImageFillSymbolLayer

class qgis.core.QgsImageFillSymbolLayer

Bases: QgsFillSymbolLayer

Base class for polygon renderers generating texture images

Methods

coordinateReference

Returns the coordinate reference mode for fill which controls how the top left corner of the image fill is positioned relative to the feature.

dxfPenStyle

rtype:

Qt.PenStyle

dxfWidth

param e:

mapUnitScale

rtype:

QgsMapUnitScale

outputUnit

rtype:

Qgis.RenderUnit

properties

rtype:

Dict[str, Any]

renderPolygon

param points:

setCoordinateReference

Sets the coordinate reference mode for fill which controls how the top left corner of the image fill is positioned relative to the feature.

setMapUnitScale

param scale:

setOutputUnit

param unit:

setStrokeWidthMapUnitScale

Sets the stroke width map unit scale.

setStrokeWidthUnit

Sets the units for the symbol's stroke width.

strokeWidthMapUnitScale

Returns the stroke width map unit scale.

strokeWidthUnit

Returns the units for the symbol's stroke width.

coordinateReference(self) Qgis.SymbolCoordinateReference

Returns the coordinate reference mode for fill which controls how the top left corner of the image fill is positioned relative to the feature.

Return type:

Qgis.SymbolCoordinateReference

Returns:

coordinate reference mode

New in version 3.24.

dxfPenStyle(self) Qt.PenStyle
Return type:

Qt.PenStyle

dxfWidth(self, e: QgsDxfExport, context: QgsSymbolRenderContext) float
Parameters:
Return type:

float

mapUnitScale(self) QgsMapUnitScale
Return type:

QgsMapUnitScale

outputUnit(self) Qgis.RenderUnit
Return type:

Qgis.RenderUnit

properties(self) Dict[str, Any]
Return type:

Dict[str, Any]

renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)
Parameters:
setCoordinateReference(self, coordinateReference: Qgis.SymbolCoordinateReference)

Sets the coordinate reference mode for fill which controls how the top left corner of the image fill is positioned relative to the feature.

Parameters:

coordinateReference (Qgis.SymbolCoordinateReference) – coordinate reference mode

New in version 3.24.

setMapUnitScale(self, scale: QgsMapUnitScale)
Parameters:

scale (QgsMapUnitScale) –

setOutputUnit(self, unit: Qgis.RenderUnit)
Parameters:

unit (Qgis.RenderUnit) –

setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)

Sets the stroke width map unit scale.

Parameters:

scale (QgsMapUnitScale) –

setStrokeWidthUnit(self, unit: Qgis.RenderUnit)

Sets the units for the symbol’s stroke width.

Parameters:

unit (Qgis.RenderUnit) –

strokeWidthMapUnitScale(self) QgsMapUnitScale

Returns the stroke width map unit scale.

Return type:

QgsMapUnitScale

strokeWidthUnit(self) Qgis.RenderUnit

Returns the units for the symbol’s stroke width.

Return type:

Qgis.RenderUnit