Table of Contents

Enum OpacityMaskContent

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

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.

public enum OpacityMaskContent

Fields

Graphics = 0

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

TextGdiCompatible = 2

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

TextNatural = 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).