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.

Members

Functions

scanline
COLOR[] scanline(int y)

Returns an array for the pixels at row y.

Mixins

__anonymous
mixin DirectView
h
int h;
Undocumented in source.

Variables

pitch
size_t pitch;

In bytes, not COLORs

pixels
COLOR* pixels;
Undocumented in source.
w
int w;
Undocumented in source.

Mixed In Members

From mixin DirectView

COLOR
alias COLOR = typeof(scanline(0)[0])
Undocumented in source.
opIndex
COLOR opIndex(int x, int y)

Implements the view[x, y] operator.

opIndex
auto opIndex(int y)

Allows array-like viewyx access.

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

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

Meta