IC Imaging Control .NET

BaseSink

BaseSink

This is the abstract base class for all sinks objects. A sink specifies the format to which the image stream is converted and it specifies the way in which single frames may be accessed. Sink types derived from this are FrameNotificationSink, FrameSnapSink, FrameQueueSink, MediaStreamSink and the deprecated FrameHandlerSink.

Example

The following example illustrates how to use the BaseSink type, when handling a sink object whose actual type is unknown:

[C#]
private void CaptureImageSequence( ICImagingControl ic ) { // Save the currently set sink object, using a BaseSink reference. BaseSink oldSink = ic.Sink; // Create a new sink object. FrameSnapSink fhs = new FrameSnapSink(); // Set the new sink. ic.Sink = fhs; // Use the new sink. ic.LiveStart(); // capture 10 images IFrameQueueBuffer[] buffers = fhs.SnapSequence( 10, TimeSpan.FromSeconds( 10 ) ); // ... ic.LiveStop(); // Restore the old sink. ic.Sink = oldSink; }

Information

Namespace: TIS.Imaging
Introduced in version 3.0

Inheritance

BaseSink
FrameHandlerSink
FrameNotificationSink
FrameQueueSink
FrameSnapSink
MediaStreamSink

Properties

Property Description
SinkModeRunning

Gets or sets the "running" state of the sink.

Methods

Method Description
SinkType

This property returns a member of the BaseSinkTypes enumeration that describes the type of this sink object.

<< Classes

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