Libraryless. Click here for Pure Java version (2133L/14K).
1 | static LL<BufferedImage> bufferedImageMNGrid(int cols, int rows, BufferedImage img) { |
2 | new LL<BufferedImage> out; |
3 | for (L<Rect> l : gridOfRects3(img.getWidth(), img.getHeight(), cols, rows)) |
4 | out.add(map(r -> clipBufferedImage(img, r), l)); |
5 | ret out; |
6 | } |
7 | |
8 | static LL<BufferedImage> bufferedImageMNGrid(BufferedImage img, int cols, int rows) { |
9 | ret bufferedImageMNGrid(cols, rows, img); |
10 | } |
Began life as a copy of #1024671
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024679 |
Snippet name: | bufferedImageMNGrid |
Eternal ID of this version: | #1024679/4 |
Text MD5: | 78addaeadf492564c55c36bd22135a18 |
Transpilation MD5: | 5ca5d9be914b4562a1e42f180f55bc6c |
Author: | stefan |
Category: | javax / image analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-23 18:46:03 |
Source code size: | 400 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 284 / 370 |
Version history: | 3 change(s) |
Referenced in: | [show references] |