IC Imaging Control ActiveX

FrameHandlerSink.LastAcquiredBuffer Property

FrameHandlerSink.LastAcquiredBuffer Property

Returns the ImageBuffer in which the last frame was fully copied. After stopping the sink, this function returns the last acquired frame until the sink is restarted.
Syntax:
Public LastAcquiredBuffer As ImageBuffer
Limitations:

Read only.

Remarks:

If an error occurs, the exception INVALID_MEMBUFFER is thrown.

Example:

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


Dim fhs As New FrameHandlerSink
fhs.SnapMode = False

ICImagingControl1.Sink = fhs
ICImagingControl1.LiveStart

' Do something, wait for user action, ...

ICImagingControl1.LiveStop

' Save the last aquired image to a JPG file.
fhs.LastAcquiredBuffer.SaveAsJpeg "last.jpg", 75
See also: FrameHandlerSink, FrameHandlerSink.ImageBuffers, ImageBuffer

<< FrameHandlerSink

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