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();
|