This method splits a 24 bit color raster image into seperate bmp images representing each of the RGB color planes.
Public Function SplitRgbImage(sourceImage As System.Drawing.Image, red As System.Drawing.Image, green As System.Drawing.Image, blue As System.Drawing.Image) As Boolean
public bool SplitRgbImage(System.Drawing.Image sourceImage, ref System.Drawing.Image red, ref System.Drawing.Image green, ref System.Drawing.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.