DXGI_ALPHA_MODE enumeration (dxgi1_2.h)

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

Syntax

typedef enum DXGI_ALPHA_MODE {
  DXGI_ALPHA_MODE_UNSPECIFIED = 0,
  DXGI_ALPHA_MODE_PREMULTIPLIED = 1,
  DXGI_ALPHA_MODE_STRAIGHT = 2,
  DXGI_ALPHA_MODE_IGNORE = 3,
  DXGI_ALPHA_MODE_FORCE_DWORD = 0xffffffff
} ;

Constants

 
DXGI_ALPHA_MODE_UNSPECIFIED
Value: 0
Indicates that the transparency behavior is not specified.
DXGI_ALPHA_MODE_PREMULTIPLIED
Value: 1
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
Value: 2
Indicates that the transparency behavior is not premultiplied. The alpha channel indicates the transparency of the color.
DXGI_ALPHA_MODE_IGNORE
Value: 3
Indicates to ignore the transparency behavior.
DXGI_ALPHA_MODE_FORCE_DWORD
Value: 0xffffffff
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

Requirement Value
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