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

12
LINES

< > BotCompany Repo | #1008953 // copyBufferedImage - extended synonym of copyImagePart

JavaX fragment (include)

1  
svoid copyBufferedImage(BufferedImage src, int srcx, int srcy, BufferedImage dest, int destx, int desty, int w, int h) {
2  
  copyImagePart(src, srcx, srcy, dest, destx, desty, w, h);
3  
}
4  
5  
svoid copyBufferedImage(BufferedImage src, BufferedImage dest, int destx, int desty) {
6  
  if (src != null)
7  
    copyBufferedImage(src, 0, 0, dest, destx, desty, src.getWidth(), src.getHeight());
8  
}
9  
10  
svoid copyBufferedImage(BufferedImage src, BufferedImage dest, Pt destP) {
11  
  copyBufferedImage(src, dest, destP.x, destP.y);
12  
}

Author comment

Began life as a copy of #1008798

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: #1008953
Snippet name: copyBufferedImage - extended synonym of copyImagePart
Eternal ID of this version: #1008953/7
Text MD5: 3a00eb90bba4e0f275eb2c326d66eacd
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-23 16:41:29
Source code size: 519 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 594 / 646
Version history: 6 change(s)
Referenced in: [show references]