- java.lang.Object
-
- ij.plugin.JpegWriter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_QUALITY
-
Constructor Summary
Constructors Constructor Description JpegWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
disableChromaSubsampling(boolean disable)
static void
enhanceQuality(boolean enhance)
Enhance quality of JPEGs by disabing chroma subsampling.static int
getQuality()
void
run(java.lang.String arg)
This method is called when the plugin is loaded.static java.lang.String
save(ImagePlus imp, java.lang.String path, int quality)
Thread-safe method.static void
setQuality(int jpegQuality)
-
-
-
Field Detail
-
DEFAULT_QUALITY
public static final int DEFAULT_QUALITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
save
public static java.lang.String save(ImagePlus imp, java.lang.String path, int quality)
Thread-safe method.
-
setQuality
public static void setQuality(int jpegQuality)
-
getQuality
public static int getQuality()
-
enhanceQuality
public static void enhanceQuality(boolean enhance)
Enhance quality of JPEGs by disabing chroma subsampling. By default, enhanced quality is automatically used when the Quality setting is 90 or greater.
-
disableChromaSubsampling
public static void disableChromaSubsampling(boolean disable)
-
-