IC Imaging Control .NET

FrameNotificationSink.FrameNotificationSink Method

FrameNotificationSink.FrameNotificationSink Method

Creates a new FrameNotificationSink.
public FrameNotificationSink( IFrameNotificationSinkListener listener ); public FrameNotificationSink( IFrameNotificationSinkListener listener, Guid mediaSubType ); public FrameNotificationSink( IFrameNotificationSinkListener listener, FrameType frameType ); public FrameNotificationSink( IFrameNotificationSinkListener listener, FrameTypes frameTypeList ); public FrameNotificationSink( Action<IFrame> frameRecvFunc ); public FrameNotificationSink( Action<IFrame> frameRecvFunc, Guid mediaSubType ); public FrameNotificationSink( Action<IFrame> frameRecvFunc, FrameType frameType ); public FrameNotificationSink( Action<IFrame> frameRecvFunc, FrameTypes frameTypeList );
Parameter Description

The IFrameNotificationSinkListener derived object that will receive all sink events.


The event function object which receives the IFrame objects. This event is equivalent to IFrameNotificationSinkListener.FrameReceived and its restrictions apply to this function object too. All other events of are IFrameNotificationSinkListener not raised. The signature of the function object is:

void funcName( IFrame frm );

Specifies the FrameType.Subtype which will be accepted by this sink. All other types will be rejected.


Specifies the FrameType which will be accepted by this sink. All other types will be rejected.


Specifies a list of FrameTypes which will be accepted by this sink. All other types will be rejected.


This example shows how to build a simple FrameNotificationSink.

Action<IFrame> recvFrame = new Action<IFrame>(( img ) => { /* Do something with the img */ }); FrameNotificationSink sink = new FrameNotificationSink(recvFrame, MediaSubtypes.RGB32); ICImagingControl1.Sink = sink; ICImagingControl1.LiveStart(); // here calls to recvFrame will be generated for each frame incoming
See also : FrameNotificationSink, IFrameNotificationSinkListener, FrameType, FrameTypes, MediaSubtypes

<< FrameNotificationSink

Get in touch with us

About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, video converters and embedded vision components for factory automation, quality assurance, medicine, science, security and a variety of other markets.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE, MIPI interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

ISO 9001:2015 certified MVTEC | Edge AI + Vision Alliance | EMVA

Contact us