DirectXAlphaMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifies the alpha value, transparency behavior, of a surface. This is a Windows Runtime equivalent of the Desktop DXGI_ALPHA_MODE enumeration.
public enum class DirectXAlphaMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 65536)]
enum class DirectXAlphaMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
enum class DirectXAlphaMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 65536)]
public enum DirectXAlphaMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public enum DirectXAlphaMode
var value = Microsoft.Graphics.DirectX.DirectXAlphaMode.unspecified
Public Enum DirectXAlphaMode
- Inheritance
-
DirectXAlphaMode
- Attributes
Fields
Name | Value | Description |
---|---|---|
Unspecified | 0 | Indicates that the transparency behavior is not specified. |
Premultiplied | 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. |
Straight | 2 | Indicates that the transparency behavior is not premultiplied. The alpha channel indicates the transparency of the color. |
Ignore | 3 | Indicates to ignore the transparency behavior. |