IImageData

Basic imagedata wrapper.

Members

Functions

convTo
IImageData convTo(uint format)

Converts the imagedata to the given format if supported

flipHorizontal
void flipHorizontal()

Flips the image horizontally

flipVertical
void flipVertical()

Flips the image vertically

raw
ubyte[] raw()

Returns the raw data cast to ubyte

read
ARGB8888 read(uint x, uint y)

Reads the image at the given point in ARGB32 format. Does palette lookup if needed.

readF
RGBA_f32 readF(uint x, uint y)

Reads the image at the given point in RGBA_f32 format. Does palette lookup if needed.

Properties

bitDepth
ubyte bitDepth [@property getter]

Returns the bitdepth of the image.

bitplanes
ubyte bitplanes [@property getter]

Returns the number of bitplanes per image. Default should be 1.

height
uint height [@property getter]

Returns the height of the image.

pixelFormat
uint pixelFormat [@property getter]

Returns the color format of the image.

width
uint width [@property getter]

Returns the width of the image.

Meta