Show / Hide Table of Contents

Class REXPaintImage.Layer

A layer of a RexPaint image.

Inheritance
object
REXPaintImage.Layer
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
Type Name Description
int width

The width of the layer.

int height

The height of the layer.

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

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX