Class VideoBrush
Implementation of IBrush for VideoPlayer frame displaying.
Inheritance
System.Object
VideoBrush
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class VideoBrush : Object, IBrush, IComparable, IEquatable<VideoBrush>
Constructors
VideoBrush()
VideoBrush(VideoPlayer)
Initializes a new instance of the VideoBrush struct.
Declaration
public VideoBrush(VideoPlayer player)
Parameters
|
VideoPlayer
player
The video player to preview. |
Fields
Filter
The texture sampling filter mode.
Declaration
[ExpandGroups]
public BrushFilter Filter
Field Value
|
BrushFilter
|
Player
The video player to display frame from it.
Declaration
public VideoPlayer Player
Field Value
|
VideoPlayer
|
Properties
Size
Gets the size of the image brush in pixels (if relevant).
Declaration
public Float2 Size { get; }
Property Value
|
Float2
|
Implements
Methods
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
|
System.Object
obj
|
Returns
|
System.Int32
|
Draw(Rectangle, Color)
Draws the specified image using Render2D graphics backend.
Declaration
public void Draw(Rectangle rect, Color color)
Parameters
|
Rectangle
rect
The draw area rectangle. |
|
Color
color
The color. |
Implements
Equals(VideoBrush)
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
|
Returns
|
System.Boolean
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
|
System.Int32
|