Enum AlphaMode
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
Specifies how the alpha value of a bitmap or render target should be treated.
D2D1_ALPHA_MODE
public enum AlphaMode
Fields
Unknown = 0
The alpha value might not be meaningful.
Premultiplied = 1
The alpha value has been premultiplied. Each color is first scaled by the alpha value. The alpha value itself is the same in both straight and premultiplied alpha. Typically, no color channel value is greater than the alpha channel value. If a color channel value in a premultiplied format is greater than the alpha channel, the standard source-over blending math results in an additive blend.
Straight = 2
The alpha value has not been premultiplied. The alpha channel indicates the transparency of the color.
Ignore = 3
The alpha value is ignored.