OwnedImage

Manually managed image which is also GC-proof.

nothrow @nogc
class OwnedImage (
COLOR
) {
nothrow @nogc
int w;
nothrow @nogc
int h;
}

Constructors

this
this()

Create empty.

this
this(int w, int h)

Create with given initial size.

Destructor

A destructor is present on this object, but not explicitly documented in the 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.

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