ImageGear Professional for Windows ActiveX
AdjustContrast Method

Description:

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.

Syntax:

      AdjustContrast(nFlags As enumGammaFlags, dContrast As Double,
dBrightness As Double, dGamma As Double)

Parameters:

Name Description
nFlags Specify which lookup tables to set. Possible values are 0 or a combination of these flags:
  • IG_DSPL_R_CHANNEL - if this flag is set then the RedLut option is to be set.
  • IG_DSPL_G_CHANNEL - if this flag is set then the GreenLut option is to be set.
  • IG_DSPL_B_CHANNEL - if this flag is set then the BlueLut option is to be set.
The constant IG_DSPL_ALL_CHANNELS is defined for convenience and can be used to set all three options.
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.

Return Value:

N/A

Bits Per Pixel:

N/A

Sample:

Display

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback