1 | static L<BufferedImage> imageToRoughlyFixedSizeTiles(BufferedImage img, int roughSize) { |
2 | ret imageToRoughlyFixedSizeTiles(img, roughSize, roughSize); |
3 | } |
4 | |
5 | static L<BufferedImage> imageToRoughlyFixedSizeTiles(BufferedImage img, int roughW, int roughH) { |
6 | int w = img.getWidth(), h = img.getHeight(); |
7 | int n = max(1, iround(doubleRatio(w, roughW))); |
8 | int m = max(1, iround(doubleRatio(h, roughH))); |
9 | ret imageToTiles(img, m, n); |
10 | } |
Began life as a copy of #1016032
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020678 |
Snippet name: | imageToRoughlyFixedSizeTiles |
Eternal ID of this version: | #1020678/1 |
Text MD5: | 9eb82d5b7279f97c40820b96e37f7543 |
Author: | stefan |
Category: | javax / image analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-30 20:51:49 |
Source code size: | 441 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 285 / 324 |
Referenced in: | [show references] |