IC Imaging Control ActiveX

BaseSink

BaseSink

This class represents a generic sink and provides properties and methods that all sinks have in common. A BaseSink can hold either a FrameHandlerSink or a MediaStreamSink. A FrameHandlerSink is used to access individual frames out of the image stream, while MediaStreamSink writes the image stream to a media file.

Example

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

Private Sub captureImageSequence(IC As ICImagingControl)

    ' Save the currently set sink object, using a BaseSink reference.
    Dim oldSink As BaseSink
    Set oldSink = IC.Sink

    ' Create a new sink object.
    Dim fhs As New FrameHandlerSink

    ' Initialize the new sink.
    fhs.BufferCount = 10

    ' Set the new sink.
    IC.Sink = fhs

    ' Use the new sink.
    IC.LiveStart
    fhs.SnapImageSequence 10, -1
    ' ...
    IC.LiveStop

    ' Restore the old sink.
    IC.Sink = oldSink

End Sub

Information

Introduced in IC Imaging Control 3.0

Inheritance

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