DWRITE_TEXT_ANTIALIAS_MODE enumeration

The DWRITE_TEXT_ANTIALIAS_MODE enumeration contains values that specify the type of antialiasing to use for text when the rendering mode calls for antialiasing.

Syntax


enum DWRITE_TEXT_ANTIALIAS_MODE {
  DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE, 
  DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE 

};

Constants

DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE

ClearType antialiasing computes coverage independently for the red, green, and blue color elements of each pixel. This allows for more detail than conventional antialiasing. However, because there is no one alpha value for each pixel, ClearType is not suitable for rendering text onto a transparent intermediate bitmap.

DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE

Grayscale antialiasing computes one coverage value for each pixel. Because the alpha value of each pixel is well-defined, text can be rendered onto a transparent bitmap, which can then be composited with other content.

Note  Grayscale rendering with IDWriteBitmapRenderTarget1 uses premultiplied alpha.
 

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps only]

Minimum supported phone

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

Header

Dwrite_1.h

See also

IDWriteBitmapRenderTarget1::GetTextAntialiasMode
IDWriteBitmapRenderTarget1::SetTextAntialiasMode

 

 

Show: