Image

An in-memory image. Pixels are stored in a flat array.

Constructors

this
this(int w, int h)
Undocumented in source.

Members

Functions

scanline
inout(COLOR)[] scanline(int y)

Returns an array for the pixels at row y.

size
void size(int w, int h)

Does not scale image

Mixins

__anonymous
mixin DirectView
h
int h;
Undocumented in source.

Variables

pixels
COLOR[] pixels;
Undocumented in source.
w
int w;
Undocumented in source.

Mixed In Members

From mixin DirectView

COLOR
alias COLOR = Unqual!(typeof(scanline(0)[0]))
Undocumented in source.
opIndex
inout(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