ImageRef

Represents a reference to COLOR data already existing elsewhere in memory. Assumes that pixels are stored row-by-row, with a known distance between each row.

struct ImageRef (
COLOR
) {
int w;
int h;
size_t pitch;
COLOR* pixels;
}

Members

Functions

scanline
COLOR[] scanline(int y)

Returns an array for the pixels at row y.

Mixed In Members

From mixin DirectView

opIndex
COLOR opIndex(int x, int y)

Implements the view[x, y] operator.

opIndexAssign
COLOR opIndexAssign(COLOR value, int x, int y)

Implements the view[x, y] = c operator.

Meta