Windows Dev Center

BitmapPixelFormat enumeration

Specifies the pixel format of pixel data. Each enumeration value defines a channel ordering, bit depth, and data type.

Syntax


public enum BitmapPixelFormat

Members

The BitmapPixelFormat enumeration has these members.

MemberValueDescription
Unknown | unknown0

The pixel format is unknown.

Rgba16 | rgba1612

The pixel format is R16B16G16A16 unsigned integer.

Rgba8 | rgba830

The pixel format is R8G8B8A8 unsigned integer.

Bgra8 | bgra887

The pixel format is B8G8R8A8 unsigned integer.

Gray16 | gray1657

The pixel format is 16 bpp grayscale.

Gray8 | gray862

The pixel format is 8 bpp grayscale.

Nv12 | nv12103

The pixel format is NV12.

Yuy2 | yuy2107

The pixel format is YUY2.

Remarks

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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]

See also

BitmapAlphaMode

 

 

Show:
© 2015 Microsoft