D2D1_OPACITY_MASK_CONTENT enumeration (d2d1.h)

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.

Syntax

typedef enum D2D1_OPACITY_MASK_CONTENT {
  D2D1_OPACITY_MASK_CONTENT_GRAPHICS = 0,
  D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL = 1,
  D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE = 2,
  D2D1_OPACITY_MASK_CONTENT_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_OPACITY_MASK_CONTENT_GRAPHICS
Value: 0
The opacity mask contains graphics. The opacity mask is blended in the gamma 2.2 color space.
D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL
Value: 1
The opacity mask contains non-GDI text. The gamma space used for blending is obtained from the render target's text rendering parameters. (ID2D1RenderTarget::SetTextRenderingParams).
D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE
Value: 2
The opacity mask contains text rendered using the GDI-compatible rendering mode. The opacity mask is blended using the gamma for GDI rendering.
D2D1_OPACITY_MASK_CONTENT_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header d2d1.h

See also

FillOpacityMask