Image

SuperImage implementation template for integer pixel formats

Constructors

this
this(uint w, uint h)
Undocumented in source.

Members

Functions

allocateData
void allocateData()
Undocumented in source. Be warned that the author may not have intended to support it.
createSameFormat
SuperImage createSameFormat(uint w, uint h)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void free()
Undocumented in source. Be warned that the author may not have intended to support it.
getPixel
Color4 getPixel(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
Color4f opIndex(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
Color4f opIndexAssign(Color4f c, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
setPixel
Color4 setPixel(Color4 c, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

bitDepth
uint bitDepth [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
channels
uint channels [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
data
ubyte[] data [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dup
SuperImage dup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
height
uint height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
pixelFormat
uint pixelFormat [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
pixelSize
uint pixelSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
uint width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_bitDepth
uint _bitDepth;
Undocumented in source.
_channels
uint _channels;
Undocumented in source.
_data
ubyte[] _data;
Undocumented in source.
_height
uint _height;
Undocumented in source.
_pixelSize
uint _pixelSize;
Undocumented in source.
_width
uint _width;
Undocumented in source.

Inherited Members

From SuperImage

width
uint width [@property getter]

Image width in pixels

height
uint height [@property getter]

Image height in pixels

bitDepth
uint bitDepth [@property getter]

Bits per channel

channels
uint channels [@property getter]

Number of channels

pixelSize
uint pixelSize [@property getter]

Bytes per pixel

pixelFormat
uint pixelFormat [@property getter]

This is compatible with IntegerPixelFormat and other internal format enums in dlib. Values from 0 to 255 are reserved for dlib. Values 256 and above are application-specific and can be used for custom SuperImage implementations

data
ubyte[] data [@property getter]

Returns raw buffer of image data in scan order. Pixel layout is specified by pixelFormat

opIndex
Color4f opIndex(int x, int y)

Pixel access operator. Should always return floating-point sRGBa or linear RGBa, depending on format family (IntegerPixelFormat or FloatPixelFormat)

opIndexAssign
Color4f opIndexAssign(Color4f c, int x, int y)

Pixel assignment operator. Accepts floating-point sRGBa or linear RGBa, depending on format family (IntegerPixelFormat or FloatPixelFormat)

dup
SuperImage dup [@property getter]

Makes a copy of the image

createSameFormat
SuperImage createSameFormat(uint w, uint h)

Makes a blank image of the same format

row
auto row [@property getter]

Range of x pixel indices

col
auto col [@property getter]

Range of y pixel indices

opApply
int opApply(int delegate(ref Color4f p, uint x, uint y) dg)

Enumerates all pixels of the image in scan order

Meta