Enum MixMode
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Framework.dll
Provides composite modes, blend modes, and alpha masking. These modes are aggregated
from CompositeMode, BlendMode, BlendMode2, and the AlphaMaskEffect.
public enum MixMode
- Extension Methods
Fields
CompositeSourceOver = 0The standard source-over-destination blend mode.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeDestinationOver = 1The destination is rendered over the source.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeSourceIn = 2Performs a logical clip of the source pixels against the destination pixels.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeDestinationIn = 3The inverse of the SourceIn operation.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeSourceOut = 4The logical inverse of the SourceIn operation.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeDestinationOut = 5The logical inverse to the DestinationIn operation.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeSourceAtop = 6Writes the source pixels over the destination where there are destination pixels.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeDestinationAtop = 7The logical inverse of the SourceAtop operation.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeXor = 8The source is inverted with the destination.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositePlus = 9The channel components are summed.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeSourceCopy = 10The source is copied to the destination; the destination pixels are ignored.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeBoundedSourceCopy = 11Equivalent to SourceCopy, but pixels outside of the source bounds are unchanged.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
CompositeMaskInvert = 12Destination colors are inverted according to a source mask.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendMultiply = 1000See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendScreen = 1001See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendDarken = 1002See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendLighten = 1003See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendDissolve = 1004See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendColorBurn = 1005See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendLinearBurn = 1006See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendDarkerColor = 1007See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendLighterColor = 1008See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendColorDodge = 1009See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendLinearDodge = 1010See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendOverlay = 1011See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendSoftLight = 1012See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendHardLight = 1013See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendVividLight = 1014See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendLinearLight = 1015See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendPinLight = 1016See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendHardMix = 1017See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendDifference = 1018See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendExclusion = 1019See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendHue = 1020See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendSaturation = 1021See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendColor = 1022See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendLuminosity = 1023See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendSubtract = 1024See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
BlendDivision = 1025See Direct2D Blend modes and Direct2D Blend effect for more information.
This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.
Blend2Additive = 2000The source colors are reflected over the destination colors.
output = min(1, (dst * dst) / (1 - src))This mode operates in straight alpha space. If the AlphaMode property is set to Premultiplied then the input will be unpremultiplied, the operation will be performed, and then the output will be premultiplied.
Blend2Reflect = 2001The source colors are reflected over the destination colors.
output = min(1, (dst * dst) / (1 - src))This mode operates in straight alpha space. If the AlphaMode property is set to Premultiplied then the input will be unpremultiplied, the operation will be performed, and then the output will be premultiplied.
Blend2Glow = 2002The inverse of Reflect.
output = min(1, (src * src) / (1 - dst))This mode operates in straight alpha space. If the AlphaMode property is set to Premultiplied then the input will be unpremultiplied, the operation will be performed, and then the output will be premultiplied.
Blend2Negation = 2003The source colors are negated over the destination colors.
output = (1 - abs(1 - dst - src))This mode operates in straight alpha space. If the AlphaMode property is set to Premultiplied then the input will be unpremultiplied, the operation will be performed, and then the output will be premultiplied.
Blend2Min = 2004The minimum of each color channel is used.
output = [R=min(dst.R, src.R), G=min(dst.G, src.G), B=min(dst.B, src.B)]This mode operates in straight alpha space. If the AlphaMode property is set to Premultiplied then the input will be unpremultiplied, the operation will be performed, and then the output will be premultiplied.
Blend2Max = 2005The maximum of each color channel is used.
output = [R=max(dst.R, src.R), G=max(dst.G, src.G), B=max(dst.B, src.B)]This mode operates in straight alpha space. If the AlphaMode property is set to Premultiplied then the input will be unpremultiplied, the operation will be performed, and then the output will be premultiplied.
Blend2XorInt8 = 2006The source and destination colors are XOR'd together using 8-bits of precision.
This mode operates in straight alpha space. If the AlphaMode property is set to Premultiplied then the input will be unpremultiplied, the operation will be performed, and then the output will be premultiplied.
Blend2XorInt16 = 2007The source and destination colors are XOR'd together using 16-bits of precision.
This mode operates in straight alpha space. If the AlphaMode property is set to Premultiplied then the input will be unpremultiplied, the operation will be performed, and then the output will be premultiplied.
AlphaMask = 3000Applies an alpha mask from the source to the destination.
Color values in the destination are multiplied by the alpha channel of the source.
Direct2D Alpha mask effect for more information.This mode operates in premultiplied alpha space. If the AlphaMode property is set to Straight then the input will be premultiplied, the operation will be performed, and then the output will be unpremultiplied.