public final class TileExtractor extends 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);
public static void start(Media levelrip, 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.Copyright © 2014 Byron 3D Games Studio. All rights reserved.