ImageEn, unit imageenproc

TImageEnProc.IntensityRGBAll

TImageEnProc.IntensityRGBAll


Declaration

procedure IntensityRGBAll(r, g, b: Integer);


Description

Change the RGB channels of the current image or the selected region.
R, G and B are the channel offsets, from -255 to +255.
Negative values darken all the pixels in the image. Positive values lighten all pixels in the image. To darken colors use IntensityRGBAll (-10, -10, -10). To lighten colors use IntensityRGBAll (10, 10, 10). Also see AdjustBrightnessContrastSaturation which uses a non-linear LUT to adjust the pixel colors. IntensityRGBAll adjusts the pixel colors by adding or subtracting the R, G, B values to each pixel in the image.


Example

// subtracts the Red channel
ImageEnView1.Proc.IntensityRGBall(-255, 0, 0);

// apply a Red filter (subtracts the Green and Blue channels)
ImageEnView1.Proc.IntensityRGBall(0, -255, -255);

// apply a darken filter (subtracts the same value from all channels)
ImageEnView1.Proc.IntensityRGBall(-10, -10, -10);

// apply a lighten filter (adds the same value to all channels)
ImageEnView1.Proc.IntensityRGBall(10, 10, 10);