Graphics.TextRenderingHint Property
.NET Framework (current version)
Gets or sets the rendering mode for text associated with this Graphics.
Assembly: System.Drawing (in System.Drawing.dll)
The text rendering hint specifies whether text renders with antialiasing.
Note |
|---|
You should not use a CompositingMode property value of SourceCopy when the TextRenderingHint property is set to ClearTypeGridFit. An exception could occur or the image may not render correctly. |
The following code example demonstrates the use of the TextRenderingHint and TextContrast properties.
This example is designed to be used with Windows Forms. Paste the code into a form and call the ChangeTextRenderingHintAndTextContrast method when handling the form's Paint event, passing e as PaintEventArgs.
.NET Framework
Available since 1.1
Available since 1.1
Show:
