SuperAnimatedImage

Animated image interface

Members

Functions

advanceFrame
uint advanceFrame()
Undocumented in source.

Properties

currentFrame
uint currentFrame [@property getter]
Undocumented in source.
currentFrame
uint currentFrame [@property setter]
Undocumented in source.
frameSize
size_t frameSize [@property getter]
Undocumented in source.
numFrames
uint numFrames [@property getter]
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