BitmapPixelFormat BitmapPixelFormat BitmapPixelFormat BitmapPixelFormat BitmapPixelFormat Enum


Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Specifies the pixel format of pixel data. Each enumeration value defines a channel ordering, bit depth, and data type.

public : enum class BitmapPixelFormat
enum class winrt::Windows::Graphics::Imaging::BitmapPixelFormat : int32_t
public enum BitmapPixelFormat
Public Enum BitmapPixelFormat
var value = Windows.Graphics.Imaging.BitmapPixelFormat.bgra8;
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Bgra8 Bgra8 Bgra8 Bgra8 Bgra8

The pixel format is B8G8R8A8 unsigned integer.

Gray16 Gray16 Gray16 Gray16 Gray16

The pixel format is 16 bpp grayscale.

Gray8 Gray8 Gray8 Gray8 Gray8

The pixel format is 8 bpp grayscale.

Nv12 Nv12 Nv12 Nv12 Nv12

The pixel format is NV12.

P010 P010 P010 P010 P010

Prerelease. The pixel format is P010.

Rgba16 Rgba16 Rgba16 Rgba16 Rgba16

The pixel format is R16B16G16A16 unsigned integer.

Rgba8 Rgba8 Rgba8 Rgba8 Rgba8

The pixel format is R8G8B8A8 unsigned integer.

Unknown Unknown Unknown Unknown Unknown

The pixel format is unknown.

Yuy2 Yuy2 Yuy2 Yuy2 Yuy2

The pixel format is YUY2.


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

The set of pixel formats represented by BitmapPixelFormat is smaller than the set of native pixel formats that can be supported by the bitmap codecs. For example, certain codecs support 32 bit floating point values. In these cases there will be a loss in fidelity when obtaining pixel data from the bitmap.

See Also