DXGI_ALPHA_MODE Enumeration

Identifies the alpha value, transparency behavior, of a surface.

Syntax

typedef enum DXGI_ALPHA_MODE {
  DXGI_ALPHA_MODE_UNSPECIFIED,
  DXGI_ALPHA_MODE_PREMULTIPLIED,
  DXGI_ALPHA_MODE_STRAIGHT,
  DXGI_ALPHA_MODE_IGNORE,
  DXGI_ALPHA_MODE_FORCE_DWORD
} ;

Constants

DXGI_ALPHA_MODE_UNSPECIFIED Indicates that the transparency behavior is not specified.
DXGI_ALPHA_MODE_PREMULTIPLIED Indicates that the transparency behavior is premultiplied. Each color is first scaled by the alpha value. The alpha value itself is the same in both straight and premultiplied alpha. Typically, no color channel value is greater than the alpha channel value. If a color channel value in a premultiplied format is greater than the alpha channel, the standard source-over blending math results in an additive blend.
DXGI_ALPHA_MODE_STRAIGHT Indicates that the transparency behavior is not premultiplied. The alpha channel indicates the transparency of the color.
DXGI_ALPHA_MODE_IGNORE Indicates to ignore the transparency behavior.
DXGI_ALPHA_MODE_FORCE_DWORD Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.

Remarks

For more information about alpha mode, see D2D1_ALPHA_MODE.

Requirements

   
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Header dxgi1_2.h

See Also

DXGI Enumerations

DXGI_SWAP_CHAIN_DESC1