ij.plugin
Class JpegWriter
java.lang.Object
ij.plugin.JpegWriter
- All Implemented Interfaces:
- PlugIn
public class JpegWriter
- extends java.lang.Object
- implements PlugIn
The File->Save As->Jpeg command (FileSaver.saveAsJpeg()) uses
this plugin to save images in JPEG format when running Java 2. The
path where the image is to be saved is passed to the run method.
Method Summary |
static int |
getQuality()
|
void |
run(java.lang.String arg)
This method is called when the plugin is loaded. |
(package private) void |
saveAsJpeg(ImagePlus imp,
java.lang.String path)
|
static void |
setQuality(int jpegQuality)
Specifies the image quality (0-100). 0 is poorest image quality,
highest compression, and 100 is best image quality, lowest compression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_QUALITY
public static final int DEFAULT_QUALITY
- See Also:
- Constant Field Values
JpegWriter
public JpegWriter()
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.
- Specified by:
run
in interface PlugIn
saveAsJpeg
void saveAsJpeg(ImagePlus imp,
java.lang.String path)
setQuality
public static void setQuality(int jpegQuality)
- Specifies the image quality (0-100). 0 is poorest image quality,
highest compression, and 100 is best image quality, lowest compression.
getQuality
public static int getQuality()