ImageGear Professional v18.2 > API Reference Guide > Display Component API Reference > Display Component Objects > IGPageDisplay Object > IGPageDisplay Methods > AdjustContrast Method |
Takes contrast (dblContrast), brightness (dblBrightness) and gamma (dblGamma) parameters and calculates lookup tables accordingly and sets them into the corresponding options. All lookup tables specified in the nFlags parameter are initialized with the same value based on the dContrast, dBrightness, and dGamma values.
AdjustContrast(nFlags As enumGammaFlags, dContrast As Double,
dBrightness As Double, dGamma As Double)
Name | Description |
---|---|
nFlags |
Specify which lookup tables to set. Possible values are 0 or a combination of these flags:
|
dContrast | Contrast value to use in calculations. You can use any value. |
dBrightness | Brightness value to use in calculations. Must be in the range from -255.0 to +255.0 |
dGamma | Gamma value to use in calculations. Must be greater than 0.0; however the most useful values are in the range from 1.8 to 2.2. |
N/A
N/A
Display