BitmapAlphaMode BitmapAlphaMode BitmapAlphaMode BitmapAlphaMode BitmapAlphaMode Enum


Specifies the alpha mode of pixel data.

public : enum class BitmapAlphaMode
enum class winrt::Windows::Graphics::Imaging::BitmapAlphaMode : int32_t
public enum BitmapAlphaMode
Public Enum BitmapAlphaMode
var value = Windows.Graphics.Imaging.BitmapAlphaMode.ignore;

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Ignore Ignore Ignore Ignore Ignore 2

The alpha value is ignored.

Premultiplied Premultiplied Premultiplied Premultiplied Premultiplied 0

The alpha value has been premultiplied. Each color is first scaled by the alpha value.

Straight Straight Straight Straight Straight 1

The alpha value has not been premultiplied. The alpha channel indicates the transparency of the color.


BitmapAlphaMode is used in conjunction with BitmapPixelFormat to describe the pixel data.

Using the Ignore value effectively treats the pixel data as opaque by discarding the alpha channel data. For example, pixel data returned by a decoder with an alpha mode of Ignore and a pixel format of Rgba8 will have alpha channel values of 0.

See also