- 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.
- 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.
- width
uint width [@property getter]
- height
uint height [@property getter]
- bitDepth
uint bitDepth [@property getter]
- channels
uint channels [@property getter]
- pixelSize
uint pixelSize [@property getter]
- 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]
- col
auto col [@property getter]
- opApply
int opApply(int delegate(ref Color4f p, uint x, uint y) dg)
Enumerates all pixels of the image in scan order
SuperImage implementation template for integer pixel formats