Class REXPaintImage.Layer
A layer of a RexPaint image.
Inherited Members
Namespace: SadConsole.Readers
Assembly: SadConsole.dll
Syntax
public class REXPaintImage.Layer
Constructors
Layer(int, int)
Creates a new layer with the specified width and height.
Declaration
public Layer(int width, int height)
Parameters
Properties
Cells
Represents all cells of the layer.
Declaration
public ReadOnlyCollection<REXPaintImage.Cell> Cells { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<REXPaintImage.Cell> |
Height
The height of the layer.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
int |
this[int]
Gets a cell by index.
Declaration
public REXPaintImage.Cell this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the cell. |
Property Value
Type | Description |
---|---|
REXPaintImage.Cell | The cell. |
this[int, int]
Gets a cell by coordinates.
Declaration
public REXPaintImage.Cell this[int x, int y] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | x | The x (0-based) position of the cell. |
int | y | The y (0-based) position of the cell. |
Property Value
Type | Description |
---|---|
REXPaintImage.Cell | The cell. |
Width
The width of the layer.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
int |