This method splits a 24 bit color raster image into seperate bmp images representing each of the RGB color planes.

[Visual Basic]
Public Function SplitRgbImage(sourceImage As Image, red As Image, green As Image, blue As Image) As Boolean
[C#]
public bool SplitRgbImage(Image sourceImage, ref Image red, ref Image green, ref Image blue) ;

Parameters

sourceImage
     The 24 bit image to be split into seperate RGB color planes

red
     An 8 bit grayscale bmp image representing the red plane

green
     An 8 bit grayscale bmp image representing the green plane

blue
     An 8 bit grayscale bmp image representing the blue plane

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The SplitRgbImage method splits a 24 bit color raster image into seperate bmp images representing each of the RGB color planes. The 24 bit color image to be split is set into the sourceImage parameter. If successful, the image is split into 8 bit grayscale bmp images and set in the respective red, green, and blue parameters.

See Also

Effect Class | Effect Members

The ImageKit.NET3 is created by Newtone Corporation