java.lang.Object
ij.plugin.Scaler
- All Implemented Interfaces:
PlugIn
,java.awt.event.FocusListener
,java.awt.event.TextListener
,java.util.EventListener
public class Scaler extends java.lang.Object implements PlugIn, java.awt.event.TextListener, java.awt.event.FocusListener
This plugin implements the Image/Scale command.
-
Constructor Summary
Constructors Constructor Description Scaler()
-
Method Summary
Modifier and Type Method Description void
focusGained(java.awt.event.FocusEvent e)
void
focusLost(java.awt.event.FocusEvent e)
static void
record(ImagePlus imp, int w2, int h2, int d2, int method)
static ImagePlus
resize(ImagePlus imp, int dstWidth, int dstHeight, int dstDepth, java.lang.String options)
Returns a scaled copy of this image or ROI, where the 'options' string can contain 'none', 'bilinear'.void
run(java.lang.String arg)
This method is called when the plugin is loaded.void
textValueChanged(java.awt.event.TextEvent e)
-
Constructor Details
-
Scaler
public Scaler()
-
-
Method Details
-
run
public void run(java.lang.String arg)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. -
resize
public static ImagePlus resize(ImagePlus imp, int dstWidth, int dstHeight, int dstDepth, java.lang.String options)Returns a scaled copy of this image or ROI, where the 'options' string can contain 'none', 'bilinear'. 'bicubic', 'slice' and 'constrain'. -
record
-
textValueChanged
public void textValueChanged(java.awt.event.TextEvent e)- Specified by:
textValueChanged
in interfacejava.awt.event.TextListener
-
focusGained
public void focusGained(java.awt.event.FocusEvent e)- Specified by:
focusGained
in interfacejava.awt.event.FocusListener
-
focusLost
public void focusLost(java.awt.event.FocusEvent e)- Specified by:
focusLost
in interfacejava.awt.event.FocusListener
-