Package arc.graphics
Class PixmapIO
java.lang.Object
arc.graphics.PixmapIO
Writes Pixmaps to various formats.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class based on https://github.com/Mike-C/lwjPNG, with many modificationsstatic class
PNG encoder with compression. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
PixmapIO
public PixmapIO()
-
-
Method Details
-
writeApix
Arc PIXmap: Similar to to the libGDX CIM format. Writes deflation-compressed pixmap RGBA data to a file. Faster and smaller than RGBA PNG. -
readApix
Reads deflation-compressed pixmap RGBA data from a file. -
writePng
Writes the pixmap as a PNG with compression. SeePixmapIO.PngWriter
to configure the compression level, more efficiently flip the pixmap vertically, and to write out multiple PNGs with minimal allocation. -
readPNG
Reads a PNG file using a pure-Java PNG decoder.
-