static L<BufferedImage> imageToRoughlyFixedSizeTiles(BufferedImage img, int roughSize) { ret imageToRoughlyFixedSizeTiles(img, roughSize, roughSize); } static L<BufferedImage> 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); }
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: | 284 / 323 |
Referenced in: | [show references] |