OwnedImage

Manually managed image which is also GC-proof.

Constructors

this
this()

Create empty.

this
this(int w, int h)

Create with given initial size.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

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

Returns an array for the pixels at row y.

size
void size(int w, int h)

Resize the image, the content is lost.

Mixins

__anonymous
mixin DirectView
h
int h;
Undocumented in source.

Variables

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.

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

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

Meta