Class ImageSink
A WPF-based Image sink.
Inheritance
System.Object
MediaSink<IVideoOutput, IVideoOutputCollection, IVideoInput, VideoSink, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ViewSink<Windows.UI.Xaml.Controls.Image>
ImageSink
Implements
IViewSink<Windows.UI.Xaml.Controls.Image>
Inherited Members
Namespace: FM.LiveSwitch.Uwp
Assembly: FM.LiveSwitch.Uwp.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 |
---|---|---|
Windows.UI.Xaml.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 |
---|---|---|
Windows.UI.Xaml.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 |
---|---|---|
Windows.UI.Xaml.Controls.Image | view | The view. |
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
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoOutputCollection, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.VideoSink, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.Label
View
Gets the view.
Declaration
public override Image View { get; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.Image |
Overrides
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.Controls.Image>.View
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
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.Controls.Image>.ViewMirror
ViewScale
Gets or sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.Controls.Image>.ViewScale
Methods
RenderBitmap(SoftwareBitmap)
Renders a bitmap.
Declaration
public void RenderBitmap(SoftwareBitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
Windows.Graphics.Imaging.SoftwareBitmap | bitmap | The bitmap. |
RenderBuffer(VideoBuffer)
Renders a video buffer.
Declaration
protected override void RenderBuffer(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |
Overrides
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.Controls.Image>.RenderBuffer(FM.LiveSwitch.VideoBuffer)