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
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 = 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