Show / Hide Table of Contents

Class ImageSection

Differing from DxImage, this clas only represnts a part of an image.

Inheritance
Object
LazyAttachableObject
Dx2DObject
Image
ImageSection
Implements
IDrawable
Inherited Members
Image.usePath
Image.filePath
Image.material
Image.Dimensions
Image.FilePath
Image.Material
Image.Rotation
Image.RotationCenter
Dx2DObject.Color
Dx2DObject.Position
Dx2DObject.PostGUI
Dx2DObject.Update(RootElement, OnUpdateEventArgs)
LazyAttachableObject.toAttached
LazyAttachableObject.Offset
LazyAttachableObject.ToAttached
LazyAttachableObject.IsAttached
LazyAttachableObject.AttachTo(PhysicalElement, Matrix4x4)
LazyAttachableObject.AttachTo(PhysicalElement, Vector3, Vector3)
LazyAttachableObject.AttachTo(PhysicalElement, Vector3, Quaternion)
LazyAttachableObject.AttachTo(PhysicalElement)
LazyAttachableObject.Detach()
LazyAttachableObject.OnAttach()
LazyAttachableObject.OnDetach()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Dx
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
Type Name Description
Vector2 position
Vector2 dimensions
Vector2 sectionUV
Vector2 UVDimensions
Material material
Single rotation
| 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
Type Name Description
Vector2 position
Vector2 dimensions
Vector2 sectionUV
Vector2 UVDimensions
Material material
Single rotation
Vector2 rotationCenter
| 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
Type Name Description
Vector2 position
Vector2 dimensions
Vector2 sectionUV
Vector2 UVDimensions
Material material
Single rotation
Vector2 rotationCenter
Color color
Boolean postGUI
| 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
Type Name Description
Vector2 position
Vector2 dimensions
Vector2 sectionUV
Vector2 UVDimensions
String filePath
Single rotation
| 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
Type Name Description
Vector2 position
Vector2 dimensions
Vector2 sectionUV
Vector2 UVDimensions
String filePath
Single rotation
Vector2 rotationCenter
| 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
Type Name Description
Vector2 position
Vector2 dimensions
Vector2 sectionUV
Vector2 UVDimensions
String filePath
Single rotation
Vector2 rotationCenter
Color color
Boolean postGUI

Properties

| Improve this Doc View Source

SectionDimensions

The dimensions of the section (width, height)

Declaration
public Vector2 SectionDimensions { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

SectionTopLeft

The absolute top left coordinate of the section

Declaration
public Vector2 SectionTopLeft { get; set; }
Property Value
Type Description
Vector2

Methods

| Improve this Doc View Source

Draw(RootElement, OnRenderEventArgs)

Declaration
public override bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Type Name Description
RootElement source
OnRenderEventArgs eventArgs
Returns
Type Description
Boolean
Overrides
Image.Draw(RootElement, OnRenderEventArgs)

Implements

IDrawable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX