Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
JpegWriter Class Reference
Inheritance diagram for JpegWriter:
PlugIn

Public Member Functions

void run (String arg)
 
byte[] getJpegContents (ImagePlus imp)
 

Static Public Member Functions

static void setQuality (int jpegQuality)
 
static int getQuality ()
 

Static Public Attributes

static final int DEFAULT_QUALITY = 75
 

Detailed Description

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.

Definition at line 14 of file JpegWriter.java.

Member Function Documentation

void run ( String  arg)
inline

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.

Implements PlugIn.

Definition at line 21 of file JpegWriter.java.

static void setQuality ( int  jpegQuality)
inlinestatic

Specifies the image quality (0-100). 0 is poorest image quality, highest compression, and 100 is best image quality, lowest compression.

Definition at line 68 of file JpegWriter.java.


The documentation for this class was generated from the following file: