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

11
LINES

< > BotCompany Repo | #1009822 // whiteImage - make all-white BufferedImage with defined size

JavaX fragment (include)

1  
static BufferedImage whiteImage(int w, int h) {
2  
  ret newBufferedImage(w, h, Color.white);
3  
}
4  
5  
static BufferedImage whiteImage(int size) {
6  
  ret whiteImage(size, size);
7  
}
8  
9  
static BufferedImage whiteImage(WidthAndHeight size) {
10  
  ret whiteImage(size.getWidth(), size.getHeight());
11  
}

Author comment

Began life as a copy of #1007136

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009822
Snippet name: whiteImage - make all-white BufferedImage with defined size
Eternal ID of this version: #1009822/5
Text MD5: 617e5f4f518445a5fa76c26c86e2539a
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-13 03:32:11
Source code size: 290 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 583 / 618
Version history: 4 change(s)
Referenced in: [show references]