1 | static BufferedImage addBackgroundToImage(Color color, BufferedImage img) {
|
2 | BufferedImage img2 = newBufferedImage(img.getWidth(), img.getHeight(), color); |
3 | ret drawImageOnImage(img, img2, 0, 0); |
4 | } |
Began life as a copy of #1007273
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019592 |
| Snippet name: | addBackgroundToImage - replaces transparent parts with background color |
| Eternal ID of this version: | #1019592/1 |
| Text MD5: | 14e23ca9504b3f7a7b11a1efbfe2169b |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-13 03:43:40 |
| Source code size: | 202 bytes / 4 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 623 / 678 |
| Referenced in: | [show references] |