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)

static BufferedImage blackImage(int w, int h) {
  ret newBufferedImage(w, h, Color.black);
}

static BufferedImage blackImage(int size) {
  ret blackImage(size, size);
}

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: 218 / 249
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)