* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
1.9 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| How to: Use Antialiasing with Text | 03/30/2017 |
|
|
48fc34f3-f236-4b01-a0cb-f0752e6d22ae |
How to: Use Antialiasing with Text
Antialiasing refers to the smoothing of jagged edges of drawn graphics and text to improve their appearance or readability. With the managed GDI+ classes, you can render high quality antialiased text, as well as lower quality text. Typically, higher quality rendering takes more processing time than lower quality rendering. To set the text quality level, set the xref:System.Drawing.Graphics.TextRenderingHint%2A property of a xref:System.Drawing.Graphics to one of the elements of the xref:System.Drawing.Text.TextRenderingHint enumeration
Example
The following code example draws text with two different quality settings.
[!code-csharpSystem.Drawing.FontsAndText#21] [!code-vbSystem.Drawing.FontsAndText#21]
The following illustration shows the output of the example code:
Compiling the Code
The preceding code example is designed for use with Windows Forms, and it requires xref:System.Windows.Forms.PaintEventArgs e, which is a parameter of xref:System.Windows.Forms.PaintEventHandler.
