Graphics.TextContrast Property

 

Gets or sets the gamma correction value for rendering text.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

member TextContrast : int with get, set

Property Value

Type: System.Int32

The 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: