- java.lang.Object
-
- ij.plugin.CanvasResizer
-
- All Implemented Interfaces:
PlugIn
public class CanvasResizer extends Object implements PlugIn
This plugin implements the Image/Adjust/Canvas Size command. It changes the canvas size of an image or stack without resizing the image. The border is filled with the current background color.- Author:
- Jeffrey Kuhn (jkuhn at ccwf.cc.utexas.edu)
-
-
Constructor Summary
Constructors Constructor Description CanvasResizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageProcessorexpandImage(ImageProcessor ipOld, int wNew, int hNew, int xOff, int yOff)ImageStackexpandStack(ImageStack stackOld, int wNew, int hNew, int xOff, int yOff)voidrun(String arg)This method is called when the plugin is loaded.
-
-
-
Method Detail
-
run
public void run(String arg)
Description copied from interface:PlugInThis method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
-
expandStack
public ImageStack expandStack(ImageStack stackOld, int wNew, int hNew, int xOff, int yOff)
-
expandImage
public ImageProcessor expandImage(ImageProcessor ipOld, int wNew, int hNew, int xOff, int yOff)
-
-