Class SpriteBrush
Inheritance
System.Object
SpriteBrush
Namespace: FlaxEngine.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class SpriteBrush : Object, IBrush
Constructors
SpriteBrush()
SpriteBrush(SpriteHandle)
Initializes a new instance of the SpriteBrush struct.
Declaration
public SpriteBrush(SpriteHandle sprite)
Parameters
SpriteHandle
sprite
The sprite. |
Fields
Filter
The texture sampling filter mode.
Declaration
[ExpandGroups]
[EditorOrder(1)]
[Tooltip("The texture sampling filter mode.")]
public BrushFilter Filter
Field Value
BrushFilter
|
Sprite
The sprite.
Declaration
[ExpandGroups]
[EditorOrder(0)]
[Tooltip("The sprite.")]
public SpriteHandle Sprite
Field Value
SpriteHandle
|
Properties
Size
Gets the size of the image brush in pixels (if relevant).
Declaration
public Float2 Size { get; }
Property Value
Float2
|
Implements
Methods
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. |