/** * Returns the overall height of the current tile in pixels. * * @return The total image height in pixels. */ public int getTileHeight() { int height = tileHeight; int maxY = getImgULY() + getImgHeight(); int y = co.y * tileHeight + tileYOffset; if (y + tileHeight >= maxY) height = maxY - y; return height; }