Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
PaintGamma Property
See Also 
Leadtools Namespace > RasterImage Class : PaintGamma Property




Gets or sets the current gamma correction value for the image.

Syntax

Visual Basic (Declaration) 
Public Property PaintGamma As Integer
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As Integer
 
instance.PaintGamma = value
 
value = instance.PaintGamma
C# 
public int PaintGamma {get; set;}
Managed Extensions for C++ 
public: __property int get_PaintGamma();
public: __property void set_PaintGamma( 
   int value
);
C++/CLI 
public:
property int PaintGamma {
   int get();
   void set (int value);
}

Return Value

The current gamma correction value.

Remarks

The paint gamma value can be any number greater than 0. The default value is 100.

Because this is an unsigned integer, it is 100 times the actual gamma value. For example, use 235 to set a gamma value of 2.35. Intensity values ideally follow a logarithmic progression, because the eye perceives changes in intensity as being equal when the ratio of change is equal. For example, we would see a change from 0.1 to 0.2 as being equal to a change from 0.2 to 0.4.

Gamma is a standard constant that is used to calculate the progression. For most CRTs the gamma constant is in the range of 2.2 to 2.5.

For more information, refer to Changing Brightness and Contrast.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also