Expand Minimize

D2D1_OPACITY_MASK_CONTENT enumeration

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_GRAPHICS             = 0,
  D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL         = 1,
  D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE  = 2
} D2D1_OPACITY_MASK_CONTENT;

Constants

D2D1_OPACITY_MASK_CONTENT_GRAPHICS

The opacity mask contains graphics. The opacity mask is blended in the gamma 2.2 color space.

D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL

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

The opacity mask contains text rendered using the GDI-compatible rendering mode. The opacity mask is blended using the gamma for GDI rendering.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

See also

FillOpacityMask

 

 

Community Additions

ADD
Show:
© 2015 Microsoft