GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / Gamma Property
Example





In This Topic
Gamma Property (GdViewer)
In This Topic
Specifies the gamma value (gamma encoding), which represents the brightness of the displayed document in the GdViewer control.

Gamma values range from 0.1 to 5.0, usually 0.1 to 2.2. A value less than 1 lightens the image, a value of 1 leaves the image unaffected, and a value greater than 1 darkens the image.

Syntax
'Declaration
 
Public Property Gamma As Single
public float Gamma {get; set;}
public read-write property Gamma: Single; 
public function get,set Gamma : float
public: __property float get_Gamma();
public: __property void set_Gamma( 
   float value
);
public:
property float Gamma {
   float get();
   void set (    float value);
}

Property Value

The default value is 1.
Example
How to change the Gamma property.
'We assume that the GdViewer1 control has been properly integrated.
'Set the required gamma encoding.
GdViewer1.Gamma = 1.2F
//We assume that the GdViewer1 control has been properly integrated.
//Set the required gamma encoding.
GdViewer1.Gamma = 1.2f;
See Also