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 Sprite
Declaration
public SpriteBrush(SpriteHandle sprite)
Parameters
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
Sprite
The sprite.
Declaration
[ExpandGroups]
[EditorOrder(0)]
[Tooltip("The sprite.")]
public SpriteHandle Sprite
Field Value
Properties
Size
Gets the size of the image brush in pixels (if relevant).
Declaration
public Float2 Size { get; }
Property Value
Implements
Methods
Draw(Rectangle, Color)
Draws the specified image using Render2D graphics backend.
Declaration
public void Draw(Rectangle rect, Color color)