MbufSave()函数

Synopsis

Save a data buffer in a file, using the MIL output file format.

Format

void MbufSave(FileName, BufId)

char *FileName; Destination file name
MIL_ID BufId; Source buffer

Description

This function saves a previously allocated data buffer in a file, using the MIL output file format (a regular TIFF file format with extra information included in the comment field). The buffer attributes and data type are also saved in the file.

When saving an image buffer (M_IMAGE) that has an associated LUT buffer (color palette), the content of the LUT is also saved with the image.

Note, you can perform the same operation as MbufSave by using MbufExport with its FileFormatBufId parameter set to M_MIL.

The FileName parameter specifies the name of the file in which to save the data buffer. If this file already exists, it will be overwritten.

The BufId parameter specifies the identifier of the data buffer to save.

See also

MbufLoad, MbufRestore, MbufExport, MbufImport, MbufControl

《MbufSave()函数》上有1条评论

评论已关闭。