Syntax: |
|
[C#] public FrameQueueSink( IFrameQueueSinkListener listener );
public FrameQueueSink( IFrameQueueSinkListener listener, Guid mediaSubType );
public FrameQueueSink( IFrameQueueSinkListener listener, FrameType frameType );
public FrameQueueSink( IFrameQueueSinkListener listener, FrameTypes frameTypeList );
public FrameQueueSink( Func<IFrameQueueBuffer,FrameQueuedResult> frameQueuedFunc, int initialBufferCount );
public FrameQueueSink( Func<IFrameQueueBuffer,FrameQueuedResult> frameQueuedFunc, Guid mediaSubType, int initialBufferCount );
public FrameQueueSink( Func<IFrameQueueBuffer,FrameQueuedResult> frameQueuedFunc, FrameType frameType, int initialBufferCount );
public FrameQueueSink( Func<IFrameQueueBuffer,FrameQueuedResult> frameQueuedFunc, FrameTypes frameTypeList, int initialBufferCount );
|
Example: |
|
The following example shows how to create a FrameQueueSink which only accepts RGB32 uses a lambda function to receive incoming frames.
[C#] FrameQueueSink sink = new FrameQueueSink(( img ) => { /* Do something with the IFrameQueueBuffer in img */ return FrameQueuedResult.ReQueue; }, MediaSubtypes.RGB32, 5);
ICImagingControl1.Sink = sink;
ICImagingControl1.LiveStart();
|