Libraryless. Click here for Pure Java version (4881L/28K).
1 | static BufferedImage cloneBufferedImageWithMetaSrc(O src, BufferedImage img) { |
2 | if (img == null) null; |
3 | img = cloneBufferedImageWithMeta(img); |
4 | setMetaSrc(img, src); |
5 | assertSame("cloneBufferedImageWithMetaSrc", getMetaSrc(img), src); |
6 | ret img; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034005 |
Snippet name: | cloneBufferedImageWithMetaSrc - make another instance of a BufferedImage with same contents plus a meta src |
Eternal ID of this version: | #1034005/9 |
Text MD5: | 0dfbf34306958215917c0489fc89aaa4 |
Transpilation MD5: | 0cf16c03561ed039934a74f22b495b68 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-17 01:09:25 |
Source code size: | 256 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 154 / 241 |
Version history: | 8 change(s) |
Referenced in: | [show references] |