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

[Visual Basic] Public Function YCCBmpPlaneFileSave(YFileName As String, CrFileName As String, CbFileName As String, SaveImage As Image) As Boolean
[C#] public bool YCCBmpPlaneFileSave(string YFileName, string CrFileName, string CbFileName, Image SaveImage);

Parameters

YFileName
   The filename of the saved Y plane image

CrFileName
   The filename of the saved Cr plane image

CbFileName
   The filename of the saved Cb plane image

SaveImage
   The image handle of the image to be saved in 4 seperate YCrCb planes

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The YCCBmpPlaneFileSave method saves a raster image into seperate YCrCb 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 YCrCb 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 YCrCb 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 YCrCb planes) will be 8 bit grayscale.

See Also

ImageKit.File Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation