Class PictureBoxSink
A WinForms-based PictureBox sink.
Inheritance
System.Object
    
    
    
    MediaSink<IVideoOutput, IVideoOutputCollection, IVideoInput, VideoSink, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
    
    
    PictureBoxSink
  Implements
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.WinForms
Assembly: FM.LiveSwitch.WinForms.dll
Syntax
public class PictureBoxSink : ViewSink<PictureBoxControl>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<PictureBoxControl>
  Constructors
PictureBoxSink()
Initializes a new instance of the PictureBoxSink class.
Declaration
public PictureBoxSink()
  PictureBoxSink(IVideoOutput)
Initializes a new instance of the PictureBoxSink class.
Declaration
public PictureBoxSink(IVideoOutput input)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IVideoOutput | input | The input.  | 
      
PictureBoxSink(IVideoOutput[])
Initializes a new instance of the PictureBoxSink class.
Declaration
public PictureBoxSink(IVideoOutput[] inputs)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IVideoOutput[] | inputs | The inputs.  | 
      
PictureBoxSink(PictureBoxControl)
Initializes a new instance of the PictureBoxSink class.
Declaration
public PictureBoxSink(PictureBoxControl view)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PictureBoxControl | view | The view.  | 
      
PictureBoxSink(PictureBoxControl, IVideoOutput)
Initializes a new instance of the PictureBoxSink class.
Declaration
public PictureBoxSink(PictureBoxControl view, IVideoOutput input)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PictureBoxControl | view | The view.  | 
      
| IVideoOutput | input | The input.  | 
      
PictureBoxSink(PictureBoxControl, IVideoOutput[])
Initializes a new instance of the PictureBoxSink class.
Declaration
public PictureBoxSink(PictureBoxControl view, IVideoOutput[] inputs)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PictureBoxControl | 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 PictureBoxControl View { get; }
  Property Value
| Type | Description | 
|---|---|
| PictureBoxControl | 
Overrides
FM.LiveSwitch.ViewSink<FM.LiveSwitch.WinForms.PictureBoxControl>.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<FM.LiveSwitch.WinForms.PictureBoxControl>.ViewMirror
  
  ViewScale
Gets or sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
  Property Value
| Type | Description | 
|---|---|
| LayoutScale | 
Overrides
FM.LiveSwitch.ViewSink<FM.LiveSwitch.WinForms.PictureBoxControl>.ViewScale
  Methods
RenderBitmap(Bitmap)
Renders a bitmap.
Declaration
public void RenderBitmap(Bitmap bitmap)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Drawing.Bitmap | 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<FM.LiveSwitch.WinForms.PictureBoxControl>.RenderBuffer(FM.LiveSwitch.VideoBuffer)