public final class TileExtractor
extends java.lang.Object
Example (will scan level.png, using a 16*16 tile size, and store result in sheet.png 256*256):
TileExtractor.start(Media.get("level.png"), Media.get("sheet.png"), 16, 16, 256, 256);
Modifier and Type | Method and Description |
---|---|
static void |
start(com.b3dgs.lionengine.core.Media levelrip,
com.b3dgs.lionengine.core.Media out,
int tilew,
int tileh,
int destW,
int destH)
Start tiles extraction.
|
public static void start(com.b3dgs.lionengine.core.Media levelrip, com.b3dgs.lionengine.core.Media out, int tilew, int tileh, int destW, int destH)
levelrip
- The input media, containing level rip as an image.out
- The output media, which will contain unique tiles.tilew
- The level tile width.tileh
- The level tile height.destW
- The output image width.destH
- The output image height.