Class Duplicator
java.lang.Object
ij.plugin.Duplicator
- All Implemented Interfaces:
PlugIn, ItemListener, TextListener, EventListener
This plugin implements the Image/Duplicate command.
// test script img1 = IJ.getImage(); img2 = new Duplicator().run(img1); //img2 = new Duplicator().run(img1,1,10); img2.show();
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy the current image or stack slice, cropped if there is a selection.static OverlaycropOverlay(Overlay overlay, Rectangle bounds) static voidvoidReturns a copy of the image, stack or hyperstack contained in the specified ImagePlus.Returns a new stack containing a subrange of the specified stack.Returns a new hyperstack containing a possibly reduced version of the input image.voidThis method is called when the plugin is loaded.void
-
Constructor Details
-
Duplicator
public Duplicator()
-
-
Method Details
-
run
-
run
-
crop
-
run
-
run
-
cropOverlay
-
textValueChanged
- Specified by:
textValueChangedin interfaceTextListener
-
itemStateChanged
- Specified by:
itemStateChangedin interfaceItemListener
-
ignoreNextSelection
public static void ignoreNextSelection()
-