MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / copyToSystem

Method copyToSystem

ij/src/main/java/ij/plugin/Clipboard.java:42–49  ·  view source on GitHub ↗

Copies the contents of the specified image, or selection, to the system clicpboard.

(ImagePlus imp)

Source from the content-addressed store, hash-verified

40
41 /** Copies the contents of the specified image, or selection, to the system clicpboard. */
42 public static void copyToSystem(ImagePlus imp) {
43 Clipboard cplugin = new Clipboard();
44 cplugin.gImp = imp;
45 cplugin.setup();
46 try {
47 cplugin.clipboard.setContents(cplugin, null);
48 } catch (Throwable t) {}
49 }
50
51 void copy(boolean cut) {
52 ImagePlus imp = WindowManager.getCurrentImage();

Callers 2

copyToSystemMethod · 0.95
runMethod · 0.95

Calls 4

setupMethod · 0.95
getCurrentImageMethod · 0.95
scriptModeMethod · 0.95
recordCallMethod · 0.95

Tested by

no test coverage detected