static L imageToRoughlyFixedSizeTiles(BufferedImage img, int roughSize) { ret imageToRoughlyFixedSizeTiles(img, roughSize, roughSize); } static L imageToRoughlyFixedSizeTiles(BufferedImage img, int roughW, int roughH) { int w = img.getWidth(), h = img.getHeight(); int n = max(1, iround(doubleRatio(w, roughW))); int m = max(1, iround(doubleRatio(h, roughH))); ret imageToTiles(img, m, n); }