public class TileSetTrimmer extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TileSetTrimmer.TrimMetricsReceiver
Used to communicate the metrics of the trimmed tiles back to the
caller so that they can do what they like with them.
|
| Constructor and Description |
|---|
TileSetTrimmer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
trimTileSet(TileSet source,
OutputStream destImage,
TileSetTrimmer.TrimMetricsReceiver tmr)
Convenience function to trim the tile set using FastImageIO to save the result.
|
static void |
trimTileSet(TileSet source,
OutputStream destImage,
TileSetTrimmer.TrimMetricsReceiver tmr,
String imgFormat)
Generates a trimmed tileset image from the supplied source
tileset.
|
public static void trimTileSet(TileSet source, OutputStream destImage, TileSetTrimmer.TrimMetricsReceiver tmr) throws IOException
IOExceptionpublic static void trimTileSet(TileSet source, OutputStream destImage, TileSetTrimmer.TrimMetricsReceiver tmr, String imgFormat) throws IOException
destImage output stream argument.source - the source tileset.destImage - an output stream to which the new trimmed image
will be written.tmr - a callback object that will be used to inform the caller
of the trimmed tile metrics.imgFormat - the format in which to write the image file - or if null, use FastImageIO.IOExceptionCopyright © 2015. All rights reserved.