Class PixmapPackerIO


  • public class PixmapPackerIO
    extends java.lang.Object
    Saves PixmapPackers to files.
    • Constructor Detail

      • PixmapPackerIO

        public PixmapPackerIO()
    • Method Detail

      • save

        public void save​(FileHandle file,
                         PixmapPacker packer)
                  throws java.io.IOException
        Saves the provided PixmapPacker to the provided file. The resulting file will use the standard TextureAtlas file format and can be loaded by TextureAtlas as if it had been created using TexturePacker. Default PixmapPackerIO.SaveParameters will be used.
        Parameters:
        file - the file to which the atlas descriptor will be written, images will be written as siblings
        packer - the PixmapPacker to be written
        Throws:
        java.io.IOException - if the atlas file can not be written
      • save

        public void save​(FileHandle file,
                         PixmapPacker packer,
                         PixmapPackerIO.SaveParameters parameters)
                  throws java.io.IOException
        Saves the provided PixmapPacker to the provided file. The resulting file will use the standard TextureAtlas file format and can be loaded by TextureAtlas as if it had been created using TexturePacker.
        Parameters:
        file - the file to which the atlas descriptor will be written, images will be written as siblings
        packer - the PixmapPacker to be written
        parameters - the SaveParameters specifying how to save the PixmapPacker
        Throws:
        java.io.IOException - if the atlas file can not be written