Table of Contents

Enum AlphaMode

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

Specifies how the alpha value of a bitmap or render target should be treated.

public enum AlphaMode

Fields

Ignore = 3

The alpha value is ignored.

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.

Unknown = 0

The alpha value might not be meaningful.

Remarks

The AlphaMode enumeration is used with the PixelFormat enumeration to specify the alpha mode of a render target or bitmap. Different render targets and bitmaps support different alpha modes. For a list, see Supported Pixel Formats and Alpha Modes.