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.

Properties

height
int height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

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