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

7
LINES

< > BotCompany Repo | #1035439 // imageWithMarkedBoxes

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

Transpiled version (9324L) is out of date.

1  
static BufferedImage imageWithMarkedBoxes(BufferedImage image, Cl<Rect> boxes, Color color) {
2  
  image = cloneBufferedImage(image);
3  
  Graphics2D g = image.createGraphics();
4  
  for (r : boxes)
5  
    drawRect(g, r.x-1, r.y-1, r.w+2, r.h+2, color);
6  
  ret image;
7  
}

Author comment

Began life as a copy of #1004268

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035439
Snippet name: imageWithMarkedBoxes
Eternal ID of this version: #1035439/3
Text MD5: 3f1d57ae740ce7b906a2a8e28377e42c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-10 20:38:31
Source code size: 262 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 125 / 187
Version history: 2 change(s)
Referenced in: [show references]