public class ImageAtlasPacker extends CommandLineTool
| Constructor and Description |
|---|
ImageAtlasPacker() |
| Modifier and Type | Method and Description |
|---|---|
protected ImageAtlas |
createImageAtlas(java.util.Map<java.lang.String,java.awt.image.BufferedImage> subImages,
int atlasWidth)
Creates an image atlas from the specified collection of images.
|
static void |
main(java.lang.String[] args) |
void |
run()
Runs this tool.
|
protected void |
saveImageAtlas(ImageAtlas imageAtlas,
java.io.File outputDir) |
getDescription, parseInputDirectory, parseInputFile, parseOutputDirectory, parseOutputFile, startpublic static void main(java.lang.String[] args)
public void run()
CommandLineToolCommandLineTool.start(String[]). When
this method is called it can be assumed that arguments have already been
mapped to fields.run in class CommandLineToolprotected ImageAtlas createImageAtlas(java.util.Map<java.lang.String,java.awt.image.BufferedImage> subImages, int atlasWidth)
subImages - Maps from a sub-image's name to its contents.atlasWidth - Width of the image atlas (the height will be auto-detected).protected void saveImageAtlas(ImageAtlas imageAtlas, java.io.File outputDir)