IC Imaging Control C++

MemBufferCollection::save Method

MemBufferCollection::save Method

Saves all buffers of this collection to disk as a .BMP file.
bool save( const std::string& filename ) const;
bool save( const std::wstring& filename ) const;

Parameter Description

Specifies the basename of the files to which the buffers are going to be written. The filename must contain one "*" which will be replaced by the indexes of the frames.

Return value:

true, if the buffers could be saved successfully, false otherwise.


This method saves buffers into a file using the windows "bmp" format. If a file of the given name already exists, it will be overwritten by this method.

The filename must contain one "*" which will be replaced by the index of the according buffer.

See also: MemBufferCollection, MemBuffer::save

<< MemBufferCollection

Get in touch with us

About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us