MemBuffer::save Method

Writes the buffer to disk as a .BMP file.
Syntax:
Error save( const std::string& filename ) const;
Error save( const std::wstring& filename ) const;
Error save( const wchar_t* pFilename ) const;

Parameter Description
filename

Specifies the name and the path of the file. The path is specified relative to the current directory.

pFilename

Specifies the name and the path of the file. The path is specified relative to the current directory.

Return value:

An Error object.

Remarks:

To set the image file color format and to write JPEG images, use the new saveToFileBMP and saveToFileJPEG functions.

See also: MemBuffer, saveToFileBMP, saveToFileJPEG, MemBufferCollection::save

<< MemBuffer