cutter.setImage(tilebmp);
Point size = cutter.getTileDimensions();
tileDimensions = new Rectangle(0,0,size.x,size.y);
if (cutter instanceof BasicTileCutter) {
BasicTileCutter basicTileCutter = (BasicTileCutter) cutter;
tileSpacing = basicTileCutter.getTileSpacing();
tileMargin = basicTileCutter.getTileMargin();
tilesPerRow = basicTileCutter.getTilesPerRow();
}
Image tile = cutter.getNextTile();
while (tile != null) {
Tile newTile = new Tile();