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

7
LINES

< > BotCompany Repo | #1025467 // blackImage - make all-black BufferedImage with defined size

JavaX fragment (include)

1  
static BufferedImage blackImage(int w, int h) {
2  
  ret newBufferedImage(w, h, Color.black);
3  
}
4  
5  
static BufferedImage blackImage(int size) {
6  
  ret blackImage(size, size);
7  
}

Author comment

Began life as a copy of #1009822

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: #1025467
Snippet name: blackImage - make all-black BufferedImage with defined size
Eternal ID of this version: #1025467/1
Text MD5: f5271412a78210c2310f0f6a56ad52af
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-29 15:21:26
Source code size: 175 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 219 / 250
Referenced in: [show references]