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

Method duplicate

ij/src/main/java/ij/gui/Overlay.java:340–346  ·  view source on GitHub ↗

Returns a clone of this Overlay.

()

Source from the content-addressed store, hash-verified

338
339 /** Returns a clone of this Overlay. */
340 public Overlay duplicate() {
341 Roi[] rois = toArray();
342 Overlay overlay2 = create();
343 for (int i=0; i<rois.length; i++)
344 overlay2.add((Roi)rois[i].clone());
345 return overlay2;
346 }
347
348 /** Returns a scaled version of this Overlay. */
349 public Overlay scale(double xscale, double yscale) {

Callers 11

flattenStackMethod · 0.95
saveOverlayMethod · 0.95
undoOverlayMethod · 0.95
runMethod · 0.95
runMethod · 0.95
convertHyperstackMethod · 0.95
compositeImageToRGBMethod · 0.95
createNewStackMethod · 0.95
scaleMethod · 0.95
runMethod · 0.95
cropMethod · 0.95

Calls 4

toArrayMethod · 0.95
createMethod · 0.95
addMethod · 0.95
cloneMethod · 0.65

Tested by

no test coverage detected