Struct AGSCropInfo
Information about how to crop entities.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public struct AGSCropInfo
Constructors
| Improve this Doc View SourceAGSCropInfo(AGSBoundingBox, FourCorners<Vector2>, CropFrom)
Initializes a new instance of the AGSCropInfo struct.
Declaration
public AGSCropInfo(AGSBoundingBox boundingBox, FourCorners<Vector2> textureBox, CropFrom cropFrom)
Parameters
Type | Name | Description |
---|---|---|
AGSBoundingBox | boundingBox | Bounding box. |
FourCorners<Vector2> | textureBox | Texture box. |
CropFrom | cropFrom | The direction the item was cropped from, if fully cropped. |
Properties
| Improve this Doc View SourceBoundingBox
Gets the bounding box for rendering the texture in.
Declaration
public AGSBoundingBox BoundingBox { get; }
Property Value
Type | Description |
---|---|
AGSBoundingBox | The bounding box. |
CropFrom
If the item was completely cropped, gets the direction the item was cropped from.
Declaration
public CropFrom CropFrom { get; }
Property Value
Type | Description |
---|---|
CropFrom | The direction it was cropped from |
TextureBox
Gets the texture box ((0,0) - (1,1) is the entire texture, meaning will not be cropped).
Declaration
public FourCorners<Vector2> TextureBox { get; }
Property Value
Type | Description |
---|---|
FourCorners<Vector2> | The texture box. |