ImageData

Imagedata container.

Constructors

this
this(T[] data, uint width, uint height, uint pixelFormat, ubyte bitDepth)

CTOR

this
this(uint width, uint height, uint pixelFormat, ubyte bitDepth)

CTOR with no preexisting image data

Members

Functions

convTo
IImageData convTo(uint format)
Undocumented in source. Be warned that the author may not have intended to support it.
flipHorizontal
void flipHorizontal()

Flips the image horizontally

flipVertical
void flipVertical()

Flips the image vertically

opIndex
T opIndex(uint x, uint y)
Undocumented in source. Be warned that the author may not have intended to support it.
raw
ubyte[] raw()

Returns the raw data cast to ubyte

read
ARGB8888 read(uint x, uint y)
Undocumented in source. Be warned that the author may not have intended to support it.
readF
RGBA_f32 readF(uint x, uint y)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

bitDepth
ubyte bitDepth [@property getter]

Returns the bitdepth of the image.

bitplanes
ubyte bitplanes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
getData
T[] getData [@property getter]

Returns the raw data

height
uint height [@property getter]

Returns the height of the image.

pixelFormat
uint pixelFormat [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
uint width [@property getter]

Returns the width of the image.

Variables

_bitDepth
ubyte _bitDepth;
_height
uint _height;
_pixelFormat
uint _pixelFormat;
Undocumented in source.
_width
uint _width;
Undocumented in source.
data
T[] data;
Undocumented in source.

Inherited Members

From IImageData

width
uint width [@property getter]

Returns the width of the image.

height
uint height [@property getter]

Returns the height of the image.

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.

pixelFormat
uint pixelFormat [@property getter]

Returns the color format of the image.

convTo
IImageData convTo(uint format)

Converts the imagedata to the given format if supported

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.

flipHorizontal
void flipHorizontal()

Flips the image horizontally

flipVertical
void flipVertical()

Flips the image vertically

raw
ubyte[] raw()

Returns the raw data cast to ubyte

Meta