Interface IBrush
Interface that unifies input source textures, sprites, render targets, and any other brushes to be used in a more generic way.
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public interface IBrush
Properties
Size
Gets the size of the image brush in pixels (if relevant).
Declaration
Float2 Size { get; }
Property Value
Float2
|
Methods
Draw(Rectangle, Color)
Draws the specified image using Render2D graphics backend.
Declaration
void Draw(Rectangle rect, Color color)
Parameters
Rectangle
rect
The draw area rectangle. |
Color
color
The color. |