Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1024679 // bufferedImageMNGrid

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2133L/14K).

static LL<BufferedImage> bufferedImageMNGrid(int cols, int rows, BufferedImage img) {
  new LL<BufferedImage> out;
  for (L<Rect> l : gridOfRects3(img.getWidth(), img.getHeight(), cols, rows))
    out.add(map(r -> clipBufferedImage(img, r), l));
  ret out;
}

static LL<BufferedImage> bufferedImageMNGrid(BufferedImage img, int cols, int rows) {
  ret bufferedImageMNGrid(cols, rows, img);
}

Author comment

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: 282 / 368
Version history: 3 change(s)
Referenced in: [show references]