C# Class SadConsole.Readers.REXPaint.Layer

A layer of a RexPaint image.
显示文件 Open project: Thraka/SadConsole Class Usage Examples

Public Methods

Method Description
Layer ( int width, int height ) : System

Creates a new layer with the specified width and height.

this ( int index ) : Cell

Gets a cell by index.

this ( int x, int y ) : Cell

Gets a cell by coordinates.

Private Methods

Method Description
CheckForBounds ( int x, int y ) : void
CheckForIndexBounds ( int index ) : void

Method Details

Layer() public method

Creates a new layer with the specified width and height.
public Layer ( int width, int height ) : System
width int The width of the layer.
height int The height of the layer.
return System

this() public method

Gets a cell by index.
public this ( int index ) : Cell
index int The index of the cell.
return Cell

this() public method

Gets a cell by coordinates.
public this ( int x, int y ) : Cell
x int The x (0-based) position of the cell.
y int The y (0-based) position of the cell.
return Cell