Graphics.TextContrast Property
.NET Framework (current version)
Gets or sets the gamma correction value for rendering text.
Assembly: System.Drawing (in System.Drawing.dll)
Property Value
Type: System.Int32The gamma correction value used for rendering antialiased and ClearType text.
The gamma correction value must be between 0 and 12. The default value is 4.
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: