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.

// changes & returns canvas
static BufferedImage drawImageOnImage(Image img, BufferedImage canvas, int x, int y) {
  createGraphics(canvas).drawImage(img, x, y, null);
  ret canvas;
}

static BufferedImage drawImageOnImage(Image img, BufferedImage canvas) {
  ret drawImageOnImage(img, canvas, 0, 0);
}

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: 602 / 641
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008798 - copyImagePart - works on BufferedImages
#1015053 - drawRotatedImageOnImage
#1019592 - addBackgroundToImage - replaces transparent parts with background color
#1030573 - drawImage