Contains the data format and alpha mode for a bitmap or render target.
typedef struct D2D1_PIXEL_FORMAT {
DXGI_FORMAT format;
D2D1_ALPHA_MODE alphaMode;
} D2D1_PIXEL_FORMAT;
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.
For more information about the pixel formats and alpha modes supported by each render target, see Supported Pixel Formats and Alpha Modes.
See the version of this topic at MSDN.
Header: Declared in d3d11_x.h (dcommon.h and wincodec.h on other Windows platforms).