Package arc.graphics

Class PixmapIO

java.lang.Object
arc.graphics.PixmapIO

public class PixmapIO extends Object
Writes Pixmaps to various formats.
  • Constructor Details

    • PixmapIO

      public PixmapIO()
  • Method Details

    • writeApix

      public static void writeApix(Fi file, Pixmap pixmap)
      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

      public static Pixmap readApix(Fi file)
      Reads deflation-compressed pixmap RGBA data from a file.
    • writePng

      public static void writePng(Fi file, Pixmap pixmap)
      Writes the pixmap as a PNG with compression. See PixmapIO.PngWriter to configure the compression level, more efficiently flip the pixmap vertically, and to write out multiple PNGs with minimal allocation.
    • readPNG

      public static Pixmap readPNG(Fi file)
      Reads a PNG file using a pure-Java PNG decoder.