Class Image
- Namespace
- Alis.Core.Ecs.Component.Render
- Assembly
- Alis.dll
The image class
public class Image
Inheritance
Inherited Members
Constructors
Image()
Initializes a new instance of the Alis.Core.Ecs.Component.Render.Image class
public Image()
Image(string)
Initializes a new instance of the Alis.Core.Ecs.Component.Render.Image class
public Image(string nameFile)
Parameters
nameFile
string-
The name file
Image(string, Vector2)
Initializes a new instance of the Alis.Core.Ecs.Component.Render.Image class
public Image(string nameFile, Vector2 size)
Parameters
Properties
Context
Gets or sets the value of the context
private Context Context { get; }
Property Value
NameFile
Gets or sets the value of the name file
[JsonPropertyName("_NameFile_")]
public string NameFile { get; set; }
Property Value
Path
Gets or sets the value of the path
public string Path { get; set; }
Property Value
Size
Gets or sets the value of the size
[JsonPropertyName("_Size_")]
public Vector2 Size { get; set; }
Property Value
Texture
Gets or sets the value of the texture
public IntPtr Texture { get; set; }
Property Value
Methods
Load()
Loads this instance
public void Load()