D2D1_PIXEL_FORMAT Structure

Contains the data format and alpha mode for a bitmap or render target.

Syntax

typedef struct D2D1_PIXEL_FORMAT {
    DXGI_FORMAT format;
    D2D1_ALPHA_MODE alphaMode;
} D2D1_PIXEL_FORMAT;  

Members

format
A DXGI_FORMAT value that specifies the size and arrangement of channels in each pixel.

alphaMode
An D2D1_ALPHA_MODE value that specifies whether the alpha channel is using pre-multiplied alpha, straight alpha, whether it should be ignored and considered opaque, or whether it is unkown.

Remarks

For more information about the pixel formats and alpha modes supported by each render target, see Supported Pixel Formats and Alpha Modes.

Example

See the version of this topic at MSDN.

Requirements

Header: Declared in d3d11_x.h (dcommon.h and wincodec.h on other Windows platforms).