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

6
LINES

< > BotCompany Repo | #1008798 // copyImagePart - works on BufferedImages

JavaX fragment (include)

static void copyImagePart(BufferedImage src, int srcx, int srcy, BufferedImage dest, int destx, int desty, int w, int h) {
  Graphics2D g = dest.createGraphics();
  BufferedImage sub = src.getSubimage(srcx, srcy, w, h);
  g.drawImage(sub, destx, desty, null);
  g.dispose();
}

Author comment

Began life as a copy of #1007273

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: #1008798
Snippet name: copyImagePart - works on BufferedImages
Eternal ID of this version: #1008798/2
Text MD5: 431f5c47eb6309d7a19c37213202fd6c
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-07 00:37:56
Source code size: 281 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 462 / 503
Version history: 1 change(s)
Referenced in: [show references]