DXGI_ALPHA_MODE enumeration
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 } DXGI_ALPHA_MODE;
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 | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Header |
|
See also