IC Imaging Control C++

FrameHandlerSink::setSnapMode Method

FrameHandlerSink::setSnapMode Method

Changes this sink's operating mode between Grab and Snap mode. In grab mode, all frames reaching the sink are presented to the frame filter or filter chain and then copied into the MemBufferCollection. After that, the frameReady event of the GrabberListener is called. In snap mode, snapImages or snapImagesAsync has to be called in order to trigger the image acquisition process.
Syntax:
void setSnapMode( bool mode );
Parameter Description
mode

A boolean determining the new snap mode.

Example:

The following example shows how to create a sink that runs in continuous mode:

{
// Create a sink, containing a MemBufferCollection of 5 buffers.
tFrameHandlerSinkPtr pSink = FrameHandlerSink::create( 5 );
 
// Disable snap mode.
pSink->setSnapMode( false );
 
// Set the sink.
m_Grabber.setSinkType( pSink );
}
See also: FrameHandlerSink, IFrameFilter, MemBufferCollection, GrabberListener, FrameHandlerSink::getSnapMode

<< 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