Show / Hide Table of Contents

Class Image

Represents a drawable image

Inheritance
Object
LazyAttachableObject
Dx2DObject
Image
ImageSection
Implements
IDrawable
Inherited Members
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 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
Type Name Description
Vector2 position
Vector2 dimensions
Material imageMaterial
Single rotation
| 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
Type Name Description
Vector2 position
Vector2 dimensions
Material imageMaterial
Single rotation
Vector2 rotationCenter
| 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
Type Name Description
Vector2 position
Vector2 dimensions
Material imageMaterial
Single rotation
Vector2 rotationCenter
Color color
Boolean postGUI
| 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
Type Name Description
Vector2 position
Vector2 dimensions
String filePath
Single rotation
| 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
Type Name Description
Vector2 position
Vector2 dimensions
String filePath
Single rotation
Vector2 rotationCenter
| 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
Type Name Description
Vector2 position
Vector2 dimensions
String filePath
Single rotation
Vector2 rotationCenter
Color color
Boolean postGUI

Fields

| Improve this Doc View Source

filePath

Declaration
protected string filePath
Field Value
Type Description
String
| Improve this Doc View Source

material

Declaration
protected Material material
Field Value
Type Description
Material
| Improve this Doc View Source

usePath

Declaration
protected bool usePath
Field Value
Type Description
Boolean

Properties

| Improve this Doc View Source

Dimensions

Width and height of the image

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

FilePath

The filepath of this image

Declaration
public string FilePath { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Material

The material element used for this image

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

Rotation

The rotation of this image

Declaration
public float Rotation { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

RotationCenter

The center offset around which this image rotates

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

Methods

| Improve this Doc View Source

Draw(RootElement, OnRenderEventArgs)

Declaration
public virtual bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Type Name Description
RootElement source
OnRenderEventArgs eventArgs
Returns
Type Description
Boolean

Implements

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