dlib.image.io.png

Decode and encode PNG/APNG images

Members

Classes

PNGLoadException
class PNGLoadException
Undocumented in source.

Enums

BlendOp
enum BlendOp
Undocumented in source.
ColorType
enum ColorType
Undocumented in source.
DisposeOp
enum DisposeOp
Undocumented in source.
FilterMethod
enum FilterMethod
Undocumented in source.

Functions

blitFrame
void blitFrame(PNGImage* png, ubyte[] frameBuffer, SuperImage img)
Undocumented in source. Be warned that the author may not have intended to support it.
crc32
uint crc32(R range, uint inCrc)
Undocumented in source. Be warned that the author may not have intended to support it.
disposeFrame
void disposeFrame(PNGImage* png, SuperImage prevImg, SuperImage img, bool firstFrame)
Undocumented in source. Be warned that the author may not have intended to support it.
err
Compound!(bool, string) err(string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
fillFrame
Compound!(bool, string) fillFrame(PNGImage* png)
Undocumented in source. Be warned that the author may not have intended to support it.
filter
Compound!(bool, string) filter(PNGImage* png, bool indexed, ubyte[] ibuffer, ubyte[] obuffer)
Undocumented in source. Be warned that the author may not have intended to support it.
getColor
Color4f getColor(PNGImage* png, ubyte[] pixData, uint x, uint y)
Undocumented in source. Be warned that the author may not have intended to support it.
loadAPNG
SuperAnimatedImage loadAPNG(string filename)

Load animated PNG (APNG) from file using local FileSystem. Causes GC allocation

loadAPNG
SuperAnimatedImage loadAPNG(InputStream istrm)

Load animated PNG (APNG) from stream using default animated image factory. Causes GC allocation

loadAPNG
Compound!(SuperAnimatedImage, string) loadAPNG(InputStream istrm, SuperImageFactory imgFac)

Load animated PNG (APNG) from stream using specified image factory. GC-free

loadPNG
SuperImage loadPNG(string filename)

Load PNG from file using local FileSystem. Causes GC allocation

loadPNG
SuperImage loadPNG(InputStream istrm)

Load PNG from stream using default image factory. Causes GC allocation

loadPNG
Compound!(SuperImage, string) loadPNG(InputStream istrm, SuperImageFactory imgFac)

Load PNG from stream using specified image factory. GC-free

paeth
ubyte paeth(ubyte a, ubyte b, ubyte c)
Undocumented in source. Be warned that the author may not have intended to support it.
readChunk
Compound!(bool, string) readChunk(PNGImage* png, InputStream istrm, PNGChunk* chunk)
Undocumented in source. Be warned that the author may not have intended to support it.
readIHDR
Compound!(bool, string) readIHDR(PNGImage* png, PNGChunk* chunk)
Undocumented in source. Be warned that the author may not have intended to support it.
saveAPNG
void saveAPNG(SuperAnimatedImage img, string filename)

Save APNG to file using local FileSystem. Causes GC allocation

saveAPNG
Compound!(bool, string) saveAPNG(SuperAnimatedImage img, OutputStream output)

Save APNG to stream. GC-free

savePNG
void savePNG(SuperImage img, string filename)

Save PNG to file using local FileSystem. Causes GC allocation

savePNG
Compound!(bool, string) savePNG(SuperImage img, OutputStream output)

Save PNG to stream. GC-free

suc
Compound!(bool, string) suc()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

IDAT
ubyte[4] IDAT;
Undocumented in source.
IEND
ubyte[4] IEND;
Undocumented in source.
IHDR
ubyte[4] IHDR;
Undocumented in source.
PLTE
ubyte[4] PLTE;
Undocumented in source.
PNGSignature
ubyte[8] PNGSignature;
Undocumented in source.
acTL
ubyte[4] acTL;
Undocumented in source.
bKGD
ubyte[4] bKGD;
Undocumented in source.
dSIG
ubyte[4] dSIG;
Undocumented in source.
fRAc
ubyte[4] fRAc;
Undocumented in source.
fcTL
ubyte[4] fcTL;
Undocumented in source.
fdAT
ubyte[4] fdAT;
Undocumented in source.
gIFg
ubyte[4] gIFg;
Undocumented in source.
gIFt
ubyte[4] gIFt;
Undocumented in source.
gIFx
ubyte[4] gIFx;
Undocumented in source.
iTXt
ubyte[4] iTXt;
Undocumented in source.
oFFs
ubyte[4] oFFs;
Undocumented in source.
pCAL
ubyte[4] pCAL;
Undocumented in source.
sCAL
ubyte[4] sCAL;
Undocumented in source.
sTER
ubyte[4] sTER;
Undocumented in source.
tEXt
ubyte[4] tEXt;
Undocumented in source.
tRNS
ubyte[4] tRNS;
Undocumented in source.
vpAg
ubyte[4] vpAg;
Undocumented in source.
zTXt
ubyte[4] zTXt;
Undocumented in source.

Structs

AnimationControlChunk
struct AnimationControlChunk
Undocumented in source.
FrameControlChunk
struct FrameControlChunk
Undocumented in source.
OffsetChunk
struct OffsetChunk
Undocumented in source.
PNGChunk
struct PNGChunk
Undocumented in source.
PNGHeader
struct PNGHeader
Undocumented in source.
PNGImage
struct PNGImage
Undocumented in source.

Meta

Authors

Timur Gafarov, Martin Cejp, Vadim Lopatin