Class Sprite
A sprite element using a built-in texture.
Inheritance
Inherited Members
Namespace: GTA.UI
Assembly: ScriptHookVDotNet3.dll
Syntax
public class Sprite : ISpriteElement, IElement, IDisposable
Constructors
Name | Description |
---|---|
Sprite(String, String, SizeF, PointF) | Initializes a new instance of the Sprite class used for drawing in game textures on the screen. |
Sprite(String, String, SizeF, PointF, Color) | Initializes a new instance of the Sprite class used for drawing in game textures on the screen. |
Sprite(String, String, SizeF, PointF, Color, Single) | Initializes a new instance of the Sprite class used for drawing in game textures on the screen. |
Sprite(String, String, SizeF, PointF, Color, Single, Boolean) | Initializes a new instance of the Sprite class used for drawing in game textures on the screen. |
Properties
Name | Description |
---|---|
Centered | Gets or sets a value indicating whether this Sprite should be positioned based on its center or top left corner |
Color | Gets or sets the color of this Sprite. |
Enabled | Gets or sets a value indicating whether this Sprite will be drawn. |
Position | Gets or sets the position of this Sprite. |
Rotation | Gets or sets the rotation to draw thie Sprite. |
Size | Gets or sets the size to draw the Sprite |
Methods
Name | Description |
---|---|
Dispose() | |
Dispose(Boolean) | |
Draw() | Draws this Sprite. |
Draw(SizeF) | Draws the Sprite at the specified offset. |
ScaledDraw() | Draws this Sprite using the width returned in ScaledWidth. |
ScaledDraw(SizeF) | Draws the Sprite at the specified offset using the width returned in ScaledWidth. |