Return a Bitmap with the specified RGB channel or all three RGB channels. The resulting Bitmap is a gray level representation of the specified channel.
ch is the RGB channel: iecRed, iecGreen, iecBlue.
To re-create the image from the RGB channel bitmaps, use SetFromRGBChannels.
Note: If the image PixelFormat is not ie24RGB, it will be converted
Demos
Demos\ImageEditing\RGBChannels\RGBChannels.dpr
Demos\ImageEditing\CompleteEditor\PhotoEn.dpr
Demos\ImageEditing\EveryMethod\EveryMethod.dpr
Image Testing
// Load test image ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );
// Return the Red channel of the image bmp1 := ImageEnView1.Proc.GetRGBChannel( iecRed );
// Return the Green channel of the image bmp1 := ImageEnView1.Proc.GetRGBChannel( iecGreen );
// Return the Blue channel of the image bmp1 := ImageEnView1.Proc.GetRGBChannel( iecBlue );
Overload 1 Example
blue := ImageEnView1.Proc.GetRGBChannel(iecBlue); green := ImageEnView1.Proc.GetRGBChannel(iecGreen); red := ImageEnView1.Proc.GetRGBChannel(iecRed);
ImageEnView2.IEBitmap.Assign(blue); // show Blue channel ImageEnView3.IEBitmap.Assign(green); // show Green channel ImageEnView4.IEBitmap.Assign(red); // show Red channel