Package com.badlogic.gdx.graphics.g2d
Class PixmapPackerIO
- java.lang.Object
-
- com.badlogic.gdx.graphics.g2d.PixmapPackerIO
-
public class PixmapPackerIO extends java.lang.ObjectSaves PixmapPackers to files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPixmapPackerIO.ImageFormatImage formats which can be used when saving a PixmapPacker.static classPixmapPackerIO.SaveParametersAdditional parameters which will be used when writing a PixmapPacker.
-
Constructor Summary
Constructors Constructor Description PixmapPackerIO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsave(FileHandle file, PixmapPacker packer)Saves the provided PixmapPacker to the provided file.voidsave(FileHandle file, PixmapPacker packer, PixmapPackerIO.SaveParameters parameters)Saves the provided PixmapPacker to the provided file.
-
-
-
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. DefaultPixmapPackerIO.SaveParameterswill be used.- Parameters:
file- the file to which the atlas descriptor will be written, images will be written as siblingspacker- 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 siblingspacker- the PixmapPacker to be writtenparameters- the SaveParameters specifying how to save the PixmapPacker- Throws:
java.io.IOException- if the atlas file can not be written
-
-