Class SpriteExtractionData
Data used to extract sprites from a texture using a grid.
Inherited Members
Namespace: Gorgon.Editor.Services
Assembly: Gorgon.Editor.API.dll
Syntax
public class SpriteExtractionData
Remarks
Developers can use this to extract sprite information using a fixed size grid to retrieve texture coordinates from a texture passed to the service.
Properties
| Edit this page View SourceArrayCount
Property to set or return the number of array indices used.
Declaration
public int ArrayCount { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
| Edit this page View SourceCellSize
Property to set or return the size of a grid cell.
Declaration
public Size2 CellSize { get; set; }
Property Value
Type | Description |
---|---|
Size2 |
See Also
| Edit this page View SourceGridOffset
Property to set or return the offset of the grid, in pixels.
Declaration
public Point GridOffset { get; set; }
Property Value
Type | Description |
---|---|
Point |
See Also
| Edit this page View SourceGridSize
Property to set or return the number of columns/rows in the grid.
Declaration
public Size2 GridSize { get; set; }
Property Value
Type | Description |
---|---|
Size2 |
See Also
| Edit this page View SourceMaxGridSize
Property to return the maximum columns and rows allowed in the grid.
Declaration
public Size2 MaxGridSize { get; }
Property Value
Type | Description |
---|---|
Size2 |
See Also
| Edit this page View SourceSkipColor
Property to set or return the color to use when skipping empty sprites.
Declaration
public GorgonColor SkipColor { get; set; }
Property Value
Type | Description |
---|---|
GorgonColor |
See Also
| Edit this page View SourceSkipEmpty
Property to set or return whether to skip empty sprites.
Declaration
public bool SkipEmpty { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
| Edit this page View SourceSpriteCount
Property to return the number of sprites that will be extracted.
Declaration
public int SpriteCount { get; }
Property Value
Type | Description |
---|---|
int |
See Also
| Edit this page View SourceStartArrayIndex
Property to set or return the starting array index to use.
Declaration
public int StartArrayIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
| Edit this page View SourceTexture
Property to set or return the texture that is to be rendered.
Declaration
public GorgonTexture2DView Texture { get; set; }
Property Value
Type | Description |
---|---|
GorgonTexture2DView |