Enum D2D1OpacityMaskContent
Describes whether an opacity mask contains graphics or text. Direct2D uses this information to determine which gamma space to use when blending the opacity mask.
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public enum D2D1OpacityMaskContent
Fields
Name | Description |
---|---|
Graphics | The opacity mask contains graphics. The opacity mask is blended in the gamma 2.2 color space. |
TextGdiCompatible | The opacity mask contains text rendered using the GDI-compatible rendering mode. The opacity mask is blended using the gamma for GDI rendering. |
TextNatural | The opacity mask contains non-GDI text. The gamma space used for blending is obtained from the render target's text rendering parameters. |