This function saves a raster image into seperate YCrCb planes. The saved images are in BMP format.
[C++Builder] BOOL
IKYCCBmpPlaneFileSave(LPCTSTR YFileName, LPCTSTR CrFileName,
LPCTSTR CbFileName, HANDLE Handle);
[Delphi] function
IKYCCBmpPlaneFileSave(YFileName, CrFileName, CbFileName: PChar;
Handle: THandle): LongBool;
Parameters
Name | Explanation |
---|---|
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 |
Handle | the image handle of the raster image |
Return Value
Returns True (nonzero) if successful. Returns 0 if unsuccessful.
Explanation
The IKYCCBmpPlaneFileSave function saves a raster image into seperate YCrCb planes. The saved images are in BMP format.
The input image (that image set in the ImageHandle parameter) must be 24 bit color. The output images (corresponding to the various YCrCb planes) will be 8 bit grayscale. The image data set in the Handle parameter is saved in the various YCrCb planes.