Class: QgsPainting¶
- class qgis.core.QgsPainting¶
Bases:
sip.wrapper
Misc painting enums and functions.
New in version 3.0:
Enums
Bases:
enum.IntEnum
Methods
Returns a BlendMode corresponding to a QPainter.CompositionMode
Returns a QPainter.CompositionMode corresponding to a BlendMode
Returns
True
ifmode
is a clipping blend mode.- class BlendMode(value)¶
Bases:
enum.IntEnum
Blending modes defining the available composition modes that can be used when painting.
Note
Prior to QGIS 3.30 this was available as
QgsPainting
.BlendMode.New in version 3.30.
BlendNormal
: NormalBlendLighten
: LightenBlendScreen
: ScreenBlendDodge
: DodgeBlendAddition
: AdditionBlendDarken
: DarkenBlendMultiply
: MultipleBlendBurn
: BurnBlendOverlay
: OverlayBlendSoftLight
: Soft lightBlendHardLight
: Hard lightBlendDifference
: DifferenceBlendSubtract
: SubtractBlendSource
: SourceBlendDestinationOver
: Destination overBlendClear
: ClearBlendDestination
: DestinationBlendSourceIn
: Source inBlendDestinationIn
: Destination inBlendSourceOut
: Source outBlendDestinationOut
: Destination outBlendSourceAtop
: Source atopBlendDestinationAtop
: Destination atopBlendXor
: XOR
- getBlendModeEnum(blendMode: QPainter.CompositionMode) Qgis.BlendMode ¶
Returns a BlendMode corresponding to a QPainter.CompositionMode
- Parameters:
blendMode (QPainter.CompositionMode) –
- Return type:
- getCompositionMode(blendMode: Qgis.BlendMode) QPainter.CompositionMode ¶
Returns a QPainter.CompositionMode corresponding to a BlendMode
- Parameters:
blendMode (Qgis.BlendMode) –
- Return type:
QPainter.CompositionMode
- isClippingMode(mode: Qgis.BlendMode) bool ¶
Returns
True
ifmode
is a clipping blend mode.New in version 3.30.
- Parameters:
mode (Qgis.BlendMode) –
- Return type:
bool