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

9
LINES

< > BotCompany Repo | #1007273 // drawImageOnImage - works on BufferedImages

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (4547L) is out of date.

1  
// changes & returns canvas
2  
static BufferedImage drawImageOnImage(Image img, BufferedImage canvas, int x, int y) {
3  
  createGraphics(canvas).drawImage(img, x, y, null);
4  
  ret canvas;
5  
}
6  
7  
static BufferedImage drawImageOnImage(Image img, BufferedImage canvas) {
8  
  ret drawImageOnImage(img, canvas, 0, 0);
9  
}

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: #1007273
Snippet name: drawImageOnImage - works on BufferedImages
Eternal ID of this version: #1007273/6
Text MD5: 938519e922863bdbc3b1f3986265fffe
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-05 03:26:50
Source code size: 312 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 620 / 664
Version history: 5 change(s)
Referenced in: [show references]