ByteMatrix

Byte matrix. author donglei

Constructors

this
this(int width, int height)

Creates a new byte matrix.

Members

Functions

clear
void clear(int value)

Clears the matrix with a specific value.

get
int get(int x, int y)

Gets the byte for a specific position.

getArray
int[][] getArray()

Gets the internal representation of the matrix.

set
void set(int x, int y, int value)

Sets the byte for a specific position.

toString
string toString()

Returns a string representation of the matrix.

Variables

_bytes
int[][] _bytes;

Bytes in the matrix, represented as array.

_height
int _height;

Height of the matrix.

_width
int _width;

Width of the matrix.

Meta