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

7
LINES

< > BotCompany Repo | #1010154 // transparentBufferedImage

JavaX fragment (include)

static BufferedImage transparentBufferedImage(WidthAndHeight etc size) {
  BufferedImage img = new BufferedImage(size.w(), size.h(), BufferedImage.TYPE_INT_ARGB);
  Graphics2D g = getGraphics2D(img);
  g.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR));
  g.fillRect(0, 0, size.w(), size.h());
  ret img;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010154
Snippet name: transparentBufferedImage
Eternal ID of this version: #1010154/4
Text MD5: c13822ad73e24f69b09d11c3095bbf37
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-27 10:05:51
Source code size: 326 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 521 / 526
Version history: 3 change(s)
Referenced in: [show references]