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



Gets or sets the current gamma correction value for this RasterImage.

Syntax

Visual Basic (Declaration) 
Public Overridable 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 virtual int PaintGamma {get; set;}
C++/CLI 
public:
virtual property int PaintGamma {
   int get();
   void set (int value);
}

Return Value

The current gamma correction value.

Remarks

The value of PaintGamma 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 CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also