Class ImageSection
Differing from DxImage, this clas only represnts a part of an image.
Assembly: SlipeClient.dll
Syntax
public class ImageSection : Image, IDrawable
Constructors
|
Improve this Doc
View Source
ImageSection(Vector2, Vector2, Vector2, Vector2, Material, Single)
Create an image section from a material
Declaration
public ImageSection(Vector2 position, Vector2 dimensions, Vector2 sectionUV, Vector2 UVDimensions, Material material, float rotation = 0F)
Parameters
|
Improve this Doc
View Source
ImageSection(Vector2, Vector2, Vector2, Vector2, Material, Single, Vector2)
Create an image section from a material with rotation
Declaration
public ImageSection(Vector2 position, Vector2 dimensions, Vector2 sectionUV, Vector2 UVDimensions, Material material, float rotation, Vector2 rotationCenter)
Parameters
|
Improve this Doc
View Source
ImageSection(Vector2, Vector2, Vector2, Vector2, Material, Single, Vector2, Color, Boolean)
Create an image section from a material with color
Declaration
public ImageSection(Vector2 position, Vector2 dimensions, Vector2 sectionUV, Vector2 UVDimensions, Material material, float rotation, Vector2 rotationCenter, Color color, bool postGUI = false)
Parameters
|
Improve this Doc
View Source
ImageSection(Vector2, Vector2, Vector2, Vector2, String, Single)
Create an image section from a filepath
Declaration
public ImageSection(Vector2 position, Vector2 dimensions, Vector2 sectionUV, Vector2 UVDimensions, string filePath, float rotation = 0F)
Parameters
|
Improve this Doc
View Source
ImageSection(Vector2, Vector2, Vector2, Vector2, String, Single, Vector2)
Create an image section from a filepath with rotation
Declaration
public ImageSection(Vector2 position, Vector2 dimensions, Vector2 sectionUV, Vector2 UVDimensions, string filePath, float rotation, Vector2 rotationCenter)
Parameters
|
Improve this Doc
View Source
ImageSection(Vector2, Vector2, Vector2, Vector2, String, Single, Vector2, Color, Boolean)
Create an image section from a filepath with color
Declaration
public ImageSection(Vector2 position, Vector2 dimensions, Vector2 sectionUV, Vector2 UVDimensions, string filePath, float rotation, Vector2 rotationCenter, Color color, bool postGUI = false)
Parameters
Properties
|
Improve this Doc
View Source
SectionDimensions
The dimensions of the section (width, height)
Declaration
public Vector2 SectionDimensions { get; set; }
Property Value
|
Improve this Doc
View Source
SectionTopLeft
The absolute top left coordinate of the section
Declaration
public Vector2 SectionTopLeft { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Draw(RootElement, OnRenderEventArgs)
Declaration
public override bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Returns
Overrides
Implements