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

6
LINES

< > BotCompany Repo | #1015044 // changeTransparencyToWhiteBackground

JavaX fragment (include)

static BufferedImage changeTransparencyToWhiteBackground(BufferedImage img) {
  if (!hasTransparency(img)) ret img;
  BufferedImage img2 = newBufferedImage(img.getWidth(), img.getHeight(), Color.white);
  drawImageOnImage(img, img2, 0, 0);
  ret img2;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015044
Snippet name: changeTransparencyToWhiteBackground
Eternal ID of this version: #1015044/1
Text MD5: 5f10168214399a42dc4303839b8acfe0
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-07 13:41:43
Source code size: 258 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 495 / 545
Referenced in: [show references]