Enum BlendMode
Represents a blend mode used in drawing operations
public enum BlendMode : uint
Fields
Add = 2Additive blending
dstRGB = (srcRGB * srcA) + dstRGB dstA = dstAAddPremultiplied = 32Pre-multiplied additive blending
dstRGB = srcRGB + dstRGB dstA = dstABlend = 1Alpha blending
dstRGB = (srcRGB * srcA) + (dstRGB * (1 - srcA)) dstA = srcA + (dstA * (1 - srcA))BlendPremultiplied = 16Pre-multiplied alpha blending
dstRGBA = srcRGBA + (dstRGBA * (1 - srcA))Invalid = 2147483647A representative for an invalid BlendMode
Modulate = 4Color modulate
dstRGB = srcRGB * dstRGB dstA = dstAMultiply = 8Color multiply
dstRGB = (srcRGB * dstRGB) + (dstRGB * (1 - srcA)) dstA = dstANone = 0No blending
dstRGBA = srcRGBA
Remarks
The defined blend modes in the BlendMode enumeration are supported everywhere.
Additional custom blend modes can be obtained by using ComposeCustom(BlendFactor, BlendFactor, BlendOperation, BlendFactor, BlendFactor, BlendOperation). Notice that not all renderers support all custom blend modes.