This method creates a single raster image from seperate bmp images representing each of the RGB planes
Public Function CombineRgbImage(red As System.Drawing.Image, green As System.Drawing.Image, blue As System.Drawing.Image, destinationImage As System.Drawing.Image) As Boolean
public bool CombineRgbImage(System.Drawing.Image red, System.Drawing.Image green, System.Drawing.Image blue, ref System.Drawing.Image destinationImage) ;
Parameters
red
The 8 bit grayscale image
representing the R plane
green
The 8 bit grayscale image
representing the G plane
blue
The 8 bit grayscale image
representing the B plane
destinationImage
The 24 bit color raster image created
from the combination of the above R, G, and B plane images
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The CombineRgbImage method creates a single raster image from seperate bmp images representing each of the RGB planes. The various images representing each of the RGB planes are 8 bit grayscale. If successful, the resulting image created by combining these R, G, and B plane images is a 24 bit color raster image and is set in the destinationImage parameter.