Class: QgsImageFillSymbolLayer

Base class for fill symbol layers which fill polygons with a repeated image.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: QgsSymbolLayer.clone(), QgsSymbolLayer.layerType(), QgsSymbolLayer.startRender(), QgsSymbolLayer.stopRender()

Class Hierarchy

Inheritance diagram of qgis.core.QgsImageFillSymbolLayer

Base classes

QgsFillSymbolLayer

Abstract base class for fill symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

Subclasses

QgsLinePatternFillSymbolLayer

A symbol fill consisting of repeated parallel lines.

QgsPointPatternFillSymbolLayer

A fill symbol layer which fills polygon shapes with repeating marker symbols.

QgsRasterFillSymbolLayer

A fill symbol layer which fills polygons with a repeated raster image.

QgsSVGFillSymbolLayer

A fill symbol layer which fills polygons with a repeated SVG file.

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.

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.

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.

class qgis.core.QgsImageFillSymbolLayer[source]

Bases: QgsFillSymbolLayer

coordinateReference(self) Qgis.SymbolCoordinateReference[source]

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

Added in version 3.24.

setCoordinateReference(self, coordinateReference: Qgis.SymbolCoordinateReference)[source]

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

Added in version 3.24.

setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the stroke width map unit scale.

Parameters:

scale (QgsMapUnitScale)

setStrokeWidthUnit(self, unit: Qgis.RenderUnit)[source]

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[source]

Returns the units for the symbol’s stroke width.

Return type:

Qgis.RenderUnit