Class ImageSink
A WPF-based Image sink.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch.Wpf
Assembly: FM.LiveSwitch.Wpf.dll
Syntax
public class ImageSink : ViewSink<Image>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<Image>
Constructors
ImageSink()
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink()
ImageSink(IVideoOutput)
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink(IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
ImageSink(IVideoOutput[])
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink(IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput[] | inputs | The inputs. |
ImageSink(Image)
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink(Image view)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Image | view | The view. |
ImageSink(Image, IVideoOutput)
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink(Image view, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Image | view | The view. |
IVideoOutput | input | The input. |
ImageSink(Image, IVideoOutput[])
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink(Image view, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Image | view | The view. |
IVideoOutput[] | inputs | The inputs. |
ImageSink(Dispatcher)
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink(Dispatcher dispatcher)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Threading.Dispatcher | dispatcher | The dispatcher. |
ImageSink(Dispatcher, IVideoOutput)
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink(Dispatcher dispatcher, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Threading.Dispatcher | dispatcher | The dispatcher. |
IVideoOutput | input | The input. |
ImageSink(Dispatcher, IVideoOutput[])
Initializes a new instance of the ImageSink class.
Declaration
public ImageSink(Dispatcher dispatcher, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Threading.Dispatcher | dispatcher | The dispatcher. |
IVideoOutput[] | inputs | The inputs. |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
View
Gets the view.
Declaration
public override Image View { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.Image |
Overrides
ViewMirror
Gets or sets a value indicating whether the view is mirrored.
Declaration
public override bool ViewMirror { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
ViewScale
Gets or sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
RenderBuffer(VideoBuffer)
Renders a video buffer.
Declaration
protected override void RenderBuffer(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |