IndexedImageData2Bit

2 Bit indexed image data.

Constructors

this
this(ubyte[] data, IPalette palette, uint width, uint height)

CTOR

this
this(IPalette palette, uint width, uint height)

CTOR without preexisting 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
ubyte opIndex(uint x, uint y)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
ubyte opIndexAssign(ubyte val, 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]
Undocumented in source. Be warned that the author may not have intended to support it.
bitplanes
ubyte bitplanes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
getData
QuadArray 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

_height
uint _height;
_pitch
uint _pitch;
Undocumented in source.
_width
uint _width;
Undocumented in source.
accessor
QuadArray accessor;
Undocumented in source.
data
ubyte[] data;
Undocumented in source.
palette
IPalette palette;
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