TrueColorImage

An RGBA array of image data. Use the free function quantize() to convert to an IndexedImage

Constructors

this
this(int w, int h)

.

this
this(int w, int h, ubyte[] data)

Creates with existing data. The data pointer is stored here.

Members

Functions

getAsTrueColorImage
TrueColorImage getAsTrueColorImage()

Returns this

height
int height()

.

width
int width()

.

Structs

Data
struct Data

.

Variables

imageData
Data imageData;

.

Inherited Members

From MemoryImage

getAsTrueColorImage
TrueColorImage getAsTrueColorImage()

gets it as a TrueColorImage. May return this or may do a conversion and return a new image

width
int width()

Image width, in pixels

height
int height()

Image height, in pixels

Meta