ImageBuffer.SaveImage Method

Saves the contents of the buffer to disk.
Syntax:
[C#]
public void SaveImage(string Filename);
Parameter Description
Filename

The name of the file to which the buffer is saved.

Sample:

This example shows how to save the contents of an ImageBuffer to a file called "test.bmp":

[C#]
ICImagingControl1.LiveStart(); try { // Use a timeout of 1000ms. ICImagingControl1.MemorySnapImage(1000); // Save the snapped image, which is stored in the ImageBuffer "ImageActiveBuffer" to a file. ICImagingControl1.ImageActiveBuffer.SaveAsBitmap("test.bmp"); } catch( ICException Ex ) { MessageBox.Show(Ex.Message, "MemorySnapImage Error"); } ICImagingControl1.LiveStop();
See also: ImageBuffer

<< ImageAvailableEventArgs.ImageBuffer