mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-09 07:56:08 +02:00
Initial winforms content migrated (#18)
* 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
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
---
|
||||
title: "How to: Use Antialiasing with Text"
|
||||
ms.date: "03/30/2017"
|
||||
dev_langs:
|
||||
- "csharp"
|
||||
- "vb"
|
||||
helpviewer_keywords:
|
||||
- "strings [Windows Forms], smoothing drawn"
|
||||
- "antialiasing [Windows Forms], using with text"
|
||||
- "text [Windows Forms], smoothing"
|
||||
- "text [Windows Forms], antialiasing"
|
||||
- "strings [Windows Forms], antialiasing when drawing"
|
||||
ms.assetid: 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-csharp[System.Drawing.FontsAndText#21](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Drawing.FontsAndText/CS/Class1.cs#21)]
|
||||
[!code-vb[System.Drawing.FontsAndText#21](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.FontsAndText/VB/Class1.vb#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>.
|
||||
|
||||
## See also
|
||||
|
||||
- [Using Fonts and Text](using-fonts-and-text.md)
|
||||
Reference in New Issue
Block a user