FrameHandlerSink.LastAcquiredBuffer Property

Returns the ImageBuffer that contains the last captured frame.
Syntax:
[C#]
public ImageBuffer LastAcquiredBuffer;
Limitations:

Read only.

Remarks:

After stopping or pausing the sink, this method returns the image buffer that contains last acquired frame until the sink is restarted.

If an error occurred, the exception INVALID_MEMBUFFER is thrown.

LastAcquiredBuffer returns NULL in case of an error.

Example:

The following example shows how to save the last acquired image in a JPG file:

[C#]
FrameHandlerSink fhs = new FrameHandlerSink(); fhs.SnapMode = false; ICImagingControl1.Sink = fhs; ICImagingControl1.LiveStart(); // Do something, wait for user action, ... ICImagingControl1.LiveStop(); // Save the last acquired image to a JPG file. fhs.LastAcquiredBuffer.SaveAsJpeg("last.jpg", 75);
See also: FrameHandlerSink, FrameHandlerSink.ImageBuffers, ImageBuffer

<< FrameHandlerSink