This method saves a raster image into seperate RGB planes. The saved images are in BMP format.

[Visual Basic] Public Function RGBBmpPlaneFileSave(RedFileName As String, GreenFileName As String, BlueFileName As StringĀASaveImage As Image) As Boolean
[C#] public bool RGBBmpPlaneFileSave(string RedFileName, string GreenFileName, string BlueFileName, Image SaveImage);

Parameters

RedFileName
   The filename of the saved R plane image

GreenFileName
   The filename of the saved G plane image

BlueFileName
   The filename of the saved B plane image

SaveImage
   The image handle of the image to be saved in 3 seperate RGB planes 

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The RGBBmpPlaneFileSave method saves a raster image into seperate RGB planes. The saved images are in BMP format.

When the SaveImage parameter contains a valid image handle

The image set in the SaveImage parameter will be saved as three seperate images each corresponding to the various RGB planes.

When the SaveImage parameter contains 0

The image referred to by the LayerNumber property (either the image set in the Image property or the image set in the Layer(LayerNumber).Image property as the case may be) will be saved as three seperate images each corresponding to the various RGB planes.

Note: When the LayerNumber property is -1, the image set in the Image property is enabled. When the LayerNumber property has values from 0 to 99, the image set in the Layer(LayerNumber).Image property is enabled.

The input image (that image set in the SaveImage parameter) must be 24 bit color. The output images (corresponding to the various RGB planes) will be 8 bit grayscale.

See Also

ImageKit.File Members | Newtone.ImageKit.Win.ImageKit

The ImageKit.NET3 is created by Newtone Corporation