Enum TextAntialiasMode
- Namespace
- SharpDX.DirectWrite
- Assembly
- SharpDX.Direct2D1.dll
The TextAntialiasMode enumeration contains values that specify the type of antialiasing to use for text when the rendering mode calls for antialiasing.
public enum TextAntialiasMode
Fields
Cleartype = 0
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.
Grayscale = 1
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 BitmapRenderTarget1 uses premultiplied alpha. ?