GammaCorrectExt method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short GammaCorrectExt(ILEADRaster * pRaster, long lGamma, GammaCorrectConstants flags)

Overview

Refer to Changing Brightness and Contrast.

Remarks

Adjusts the intensity of colors in a bitmap by changing the gamma constant that is used to map the intensity values. Either of two different color spaces can be specified.

This method is like the GammaCorrect method, but has been extended to allow the specification of the colorspace to be used.

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.

This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

See Also

Elements:

GammaCorrect method, Intensity method, Contrast method, HistoContrast method, StretchIntensity method, RemapIntensity method, Invert method, Hue method, Saturation method, HistoEqualize method, Fill method, Pixel property, GetHistogram method, WindowLevel method, ChannelMix method, Deinterlace method, Desaturate method, EdgeDetectStatistical method, LightControl method, SmoothEdges method, LocalHistoEqualize method, AddWeightedBitmaps method, ColorMerge method, ColorSeparate method, Multiply method, AutoColorLevel method, ColorLevel method, Correlation method, GrayScaleToDuotone method, GrayScaleToMultitone method, HolesRemovalBitmapRgn method, SelectiveColor method, Skeleton method, HueSaturationIntensity method, ColorReplace method, ColorThreshold method, MathFunction method, Segment method, AdaptiveContrast method, ApplyMathLogic method, ColorIntensityBalance method, ColorizeGray method, ContrastBrightIntensity method, DigitalSubtract method, DynamicBinary method, EdgeDetectEffect method, FunctionalLight method, MultiScaleEnhancement method, SelectData method, ShiftData method

Topics:

Raster Images: Modifying Intensity Values.