MonochromeImageData

Monochrome imagedata container for 8 and 16 bit types.

Constructors

this
this(T[] data, uint width, uint height, uint pixelFormat, ubyte bitDepth)
Undocumented in source.
this
this(uint width, uint height, uint pixelFormat, ubyte bitDepth)

CTOR with no preexisting image data

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

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)

Reads the image at the given point in ARGB32 format.

readF
RGBA_f32 readF(uint x, uint y)

Reads the image at the given point in RGBA_f32 format.

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.

Static variables

fYStepping
double fYStepping;
Undocumented in source.

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