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(); }
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: | 777 / 834 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1008953 - copyBufferedImage - extended synonym of copyImagePart |