Class Sink
A Direct2D-based WinForms view sink.
Inheritance
System.Object
MediaSink<IVideoOutput, IVideoOutputCollection, IVideoInput, VideoSink, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ViewSink<System.Windows.Forms.Control>
Sink<System.Windows.Forms.Control>
Sink
Implements
IViewSink<System.Windows.Forms.Control>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch.SharpDX.WinForms
Assembly: FM.LiveSwitch.SharpDX.dll
Syntax
public class Sink : Sink<Control>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<Control>
Constructors
Sink()
Initializes a new instance of the Sink class.
Declaration
public Sink()
Sink(IVideoOutput)
Initializes a new instance of the Sink class.
Declaration
public Sink(IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
Sink(IVideoOutput[])
Initializes a new instance of the Sink class.
Declaration
public Sink(IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput[] | inputs | The inputs. |
Sink(Control)
Initializes a new instance of the Sink class.
Declaration
public Sink(Control view)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | view | The view. |
Sink(Control, IVideoOutput)
Initializes a new instance of the Sink class.
Declaration
public Sink(Control view, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | view | The view. |
IVideoOutput | input | The input. |
Sink(Control, IVideoOutput[])
Initializes a new instance of the Sink class.
Declaration
public Sink(Control view, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | view | The view. |
IVideoOutput[] | inputs | The inputs. |
Methods
CreateView()
Creates a view.
Declaration
protected override Control CreateView()
Returns
Type | Description |
---|---|
System.Windows.Forms.Control |
Overrides
FM.LiveSwitch.SharpDX.Sink<System.Windows.Forms.Control>.CreateView()
GetViewHandle(Control)
Gets the view handle.
Declaration
protected override IntPtr GetViewHandle(Control view)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | view | The view. |
Returns
Type | Description |
---|---|
System.IntPtr |
Overrides
FM.LiveSwitch.SharpDX.Sink<System.Windows.Forms.Control>.GetViewHandle(System.Windows.Forms.Control)
GetViewHeight(Control)
Gets the height of the view.
Declaration
protected override double GetViewHeight(Control view)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | view | The view. |
Returns
Type | Description |
---|---|
System.Double |
Overrides
FM.LiveSwitch.SharpDX.Sink<System.Windows.Forms.Control>.GetViewHeight(System.Windows.Forms.Control)
GetViewWidth(Control)
Gets the width of the view.
Declaration
protected override double GetViewWidth(Control view)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | view | The view. |
Returns
Type | Description |
---|---|
System.Double |
Overrides
FM.LiveSwitch.SharpDX.Sink<System.Windows.Forms.Control>.GetViewWidth(System.Windows.Forms.Control)