
This is the abstract base class for all sinks which cannot be instantiated. A sink specifies the format to which the image stream is converted and it specifies the way in which single frames may be accessed.
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. FrameHandlerSink fhs = 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; }
[VB.NET]
Private Sub CaptureImageSequence(ByVal IC As ICImagingControl) ' Save the currently set sink object, using a BaseSink reference. Dim oldSink As BaseSink 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
Namespace: TIS.Imaging
Introduced in IC Imaging Control 3.0
BaseSink
FrameHandlerSink
MediaStreamSink
| Property | Description | ||
| SinkModeRunning | Gets or sets the "running" state of the sink. |
||