Class Image
Represents a drawable image
Assembly: SlipeClient.dll
Syntax
public class Image : Dx2DObject, IDrawable
Constructors
|
Improve this Doc
View Source
Image(Vector2, Vector2, Material, Single)
Create an image from a material
Declaration
public Image(Vector2 position, Vector2 dimensions, Material imageMaterial, float rotation = 0F)
Parameters
|
Improve this Doc
View Source
Image(Vector2, Vector2, Material, Single, Vector2)
Create an image from a material with rotation
Declaration
public Image(Vector2 position, Vector2 dimensions, Material imageMaterial, float rotation, Vector2 rotationCenter)
Parameters
|
Improve this Doc
View Source
Image(Vector2, Vector2, Material, Single, Vector2, Color, Boolean)
Create an image from a material with color
Declaration
public Image(Vector2 position, Vector2 dimensions, Material imageMaterial, float rotation, Vector2 rotationCenter, Color color, bool postGUI = false)
Parameters
|
Improve this Doc
View Source
Image(Vector2, Vector2, String, Single)
Create an image from a filepath
Declaration
public Image(Vector2 position, Vector2 dimensions, string filePath, float rotation = 0F)
Parameters
|
Improve this Doc
View Source
Image(Vector2, Vector2, String, Single, Vector2)
Create an image from a filepath with rotation
Declaration
public Image(Vector2 position, Vector2 dimensions, string filePath, float rotation, Vector2 rotationCenter)
Parameters
|
Improve this Doc
View Source
Image(Vector2, Vector2, String, Single, Vector2, Color, Boolean)
Create an image from a filepath with a color
Declaration
public Image(Vector2 position, Vector2 dimensions, string filePath, float rotation, Vector2 rotationCenter, Color color, bool postGUI = false)
Parameters
Fields
|
Improve this Doc
View Source
filePath
Declaration
protected string filePath
Field Value
|
Improve this Doc
View Source
material
Declaration
protected Material material
Field Value
|
Improve this Doc
View Source
usePath
Declaration
Field Value
Properties
|
Improve this Doc
View Source
Dimensions
Width and height of the image
Declaration
public Vector2 Dimensions { get; set; }
Property Value
|
Improve this Doc
View Source
FilePath
The filepath of this image
Declaration
public string FilePath { get; set; }
Property Value
|
Improve this Doc
View Source
Material
The material element used for this image
Declaration
public Material Material { get; set; }
Property Value
|
Improve this Doc
View Source
Rotation
The rotation of this image
Declaration
public float Rotation { get; set; }
Property Value
|
Improve this Doc
View Source
RotationCenter
The center offset around which this image rotates
Declaration
public Vector2 RotationCenter { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Draw(RootElement, OnRenderEventArgs)
Declaration
public virtual bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Returns
Implements