CanvasTextAntialiasing Enumeration |
Namespace: Microsoft.Graphics.Canvas.Text
public enum CanvasTextAntialiasing
Member name | Value | Description | |
---|---|---|---|
Auto | 0 | Automatically choose the text antialiasing mode. | |
ClearType | 1 | Use ClearType antialiasing. | |
Grayscale | 2 | Use grayscale antialiasing. | |
Aliased | 3 | Do not use antialiasing. |
In most cases, Grayscale is a better choice than the Auto algorithm. Auto mode selects ClearType antialiasing unless:
Drawing ClearType directly to a transparent background, while not an error, can produce undefined results. If your app needs to draw ClearType text to a transparent background, consider using a CanvasActiveLayer followed by a Clear to an opaque color, or using FillRectangle Overload to fill an opaque rectangle behind the text.