IC Imaging Control .NET

FrameNotificationSink.FrameNotificationSink Method

FrameNotificationSink.FrameNotificationSink Method

Creates a new FrameNotificationSink.
Syntax:
[C#]
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
listener

The IFrameNotificationSinkListener derived object that will receive all sink events.

frameRecvFunc

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:

[C#]
void funcName( IFrame frm );
mediaSubType

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

frameType

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

frameTypeList

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

Example:

This example shows how to build a simple FrameNotificationSink.

[C#]
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, 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