Enum BlendMode2
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Framework.dll
public enum BlendMode2
Fields
Additive = 0The source and destination colors are summed.
output = dst + srcReflect = 1The source colors are reflected over the destination colors.
output = min(1, (dst * dst) / (1 - src))Glow = 2The inverse of Reflect.
output = min(1, (src * src) / (1 - dst))Negation = 3The source colors are negated over the destination colors.
output = (1 - abs(1 - dst - src))Min = 4The 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)]Max = 5The 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)]XorInt8 = 6The source and destination colors are XOR'd together using 8-bits of precision.
"8-bits of precision" refers to the normalized range of [0.0f, 1.0f]. Pixel values outside of that normalized range are not clamped and will still work, but very large values may not have enough precision to work correctly.
The pixel values are multiplied by 255.0f, rounded to integers, xor'd together, then cast back to float, and finally divided by 255.0f.XorInt16 = 7The source and destination colors are XOR'd together using 16-bits of precision.
"16-bits of precision" refers to the normalized range of [0.0f, 1.0f]. Pixel values outside of that normalized range are not clamped and will still work, but very large values may not have enough precision to work correctly.
The pixel values are multiplied by 65535.0f, rounded to integers, xor'd together, then cast back to float, and finally divided by 65535.0f.