Package ij.plugin
Class Resizer
java.lang.Object
ij.plugin.Resizer
- All Implemented Interfaces:
PlugIn
,ItemListener
,TextListener
,EventListener
public class Resizer extends Object implements PlugIn, TextListener, ItemListener
This plugin implements the Edit/Crop and Image/Adjust/Size commands.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Resizer()
-
Method Summary
Modifier and Type Method Description void
itemStateChanged(ItemEvent e)
void
run(String arg)
This method is called when the plugin is loaded.void
setAverageWhenDownsizing(boolean averageWhenDownsizing)
void
textValueChanged(TextEvent e)
ImagePlus
zScale(ImagePlus imp, int newDepth, int interpolationMethod)
-
Field Details
-
IN_PLACE
public static final int IN_PLACE- See Also:
- Constant Field Values
-
SCALE_T
public static final int SCALE_T- See Also:
- Constant Field Values
-
-
Constructor Details
-
Resizer
public Resizer()
-
-
Method Details
-
run
Description copied from interface:PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt. -
zScale
-
textValueChanged
- Specified by:
textValueChanged
in interfaceTextListener
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
setAverageWhenDownsizing
public void setAverageWhenDownsizing(boolean averageWhenDownsizing)
-