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

7
LINES

< > BotCompany Repo | #1034005 // cloneBufferedImageWithMetaSrc - make another instance of a BufferedImage with same contents plus a meta src

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4881L/28K).

static BufferedImage cloneBufferedImageWithMetaSrc(O src, BufferedImage img) {
  if (img == null) null;
  img = cloneBufferedImageWithMeta(img);
  setMetaSrc(img, src);
  assertSame("cloneBufferedImageWithMetaSrc", getMetaSrc(img), src);
  ret img;
}

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: 153 / 239
Version history: 8 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1034006 - cloneBufferedImageWithMeta - try to make another instance of a BufferedImage with same contents but also having an IMeta property