Class: QgsPainting

class qgis.core.QgsPainting

Bases: sip.wrapper

Misc painting enums and functions.

BlendAddition = 4
BlendBurn = 7
BlendClear = 15
BlendDarken = 5
BlendDestination = 16
BlendDestinationAtop = 22
BlendDestinationIn = 18
BlendDestinationOut = 20
BlendDestinationOver = 14
BlendDifference = 11
BlendDodge = 3
BlendHardLight = 10
BlendLighten = 1
class BlendMode

Bases: int

BlendMultiply = 6
BlendNormal = 0
BlendOverlay = 8
BlendScreen = 2
BlendSoftLight = 9
BlendSource = 13
BlendSourceAtop = 21
BlendSourceIn = 17
BlendSourceOut = 19
BlendSubtract = 12
BlendXor = 23
getBlendModeEnum(blendMode: QPainter.CompositionMode) → QgsPainting.BlendMode

Returns a BlendMode corresponding to a QPainter.CompositionMode

Parameters

blendMode (QPainter.CompositionMode) –

Return type

QgsPainting.BlendMode

getCompositionMode(blendMode: QgsPainting.BlendMode) → QPainter.CompositionMode

Returns a QPainter.CompositionMode corresponding to a BlendMode

Parameters

blendMode (QgsPainting.BlendMode) –

Return type

QPainter.CompositionMode