This documentation is archived and is not being maintained.

Graphics.TextContrast Property

Gets or sets the gamma correction value for rendering text.

[Visual Basic]
Public Property TextContrast As Integer
public int TextContrast {get; set;}
public: __property int get_TextContrast();
public: __property void set_TextContrast(int);
public function get TextContrast() : int;
public function set TextContrast(int);

Property Value

This property specifies a value of the gamma correction used for rendering antialiased and ClearType text.


The gamma correction value must be between 0 and 12. The default value is 4.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Graphics Class | Graphics Members | System.Drawing Namespace