Class StaticImage
Represents a static Cegui image
Inherited Members
Namespace: Slipe.Client.Gui
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.GuiStaticImage)]
public class StaticImage : GuiElement
Constructors
| Improve this Doc View SourceStaticImage(Vector2, Vector2, String, Boolean, GuiElement)
Create a static image
Declaration
public StaticImage(Vector2 position, Vector2 dimensions, string filePath, bool relative = false, GuiElement parent = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | |
| Vector2 | dimensions | |
| String | filePath | |
| Boolean | relative | |
| GuiElement | parent |
Methods
| Improve this Doc View SourceLoadImage(String)
Load a new image from a file path
Declaration
public bool LoadImage(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| String | filePath |
Returns
| Type | Description |
|---|---|
| Boolean |