SuperImage

Abstract image interface

Members

Functions

createSameFormat
SuperImage createSameFormat(uint w, uint h)

Makes a blank image of the same format

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

Enumerates all pixels of the image in scan order

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)

Properties

bitDepth
uint bitDepth [@property getter]

Bits per channel

channels
uint channels [@property getter]

Number of channels

col
auto col [@property getter]

Range of y pixel indices

data
ubyte[] data [@property getter]

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

dup
SuperImage dup [@property getter]

Makes a copy of the image

height
uint height [@property getter]

Image height in pixels

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

pixelSize
uint pixelSize [@property getter]

Bytes per pixel

row
auto row [@property getter]

Range of x pixel indices

width
uint width [@property getter]

Image width in pixels

Inherited Members

From Freeable

free
void free()
Undocumented in source.

Meta