javax.imageio
Class ImageWriteParam

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.imageio.IIOParam sample code for javax.imageio.IIOParam definition code for javax.imageio.IIOParam 
      extended by javax.imageio.ImageWriteParam
Direct Known Subclasses:
BMPImageWriteParam sample code for javax.imageio.plugins.bmp.BMPImageWriteParam definition code for javax.imageio.plugins.bmp.BMPImageWriteParam , JPEGImageWriteParam sample code for javax.imageio.plugins.jpeg.JPEGImageWriteParam definition code for javax.imageio.plugins.jpeg.JPEGImageWriteParam

public class ImageWriteParam
extends IIOParam sample code for javax.imageio.IIOParam definition code for javax.imageio.IIOParam

A class describing how a stream is to be encoded. Instances of this class or its subclasses are used to supply prescriptive "how-to" information to instances of ImageWriter.

A plug-in for a specific image format may define a subclass of this class, and return objects of that class from the getDefaultWriteParam method of its ImageWriter implementation. For example, the built-in JPEG writer plug-in will return instances of javax.imageio.plugins.jpeg.JPEGImageWriteParam.

The region of the image to be written is determined by first intersecting the actual bounds of the image with the rectangle specified by IIOParam.setSourceRegion, if any. If the resulting rectangle has a width or height of zero, the writer will throw an IIOException. If the intersection is non-empty, writing will commence with the first subsampled pixel and include additional pixels within the intersected bounds according to the horizontal and vertical subsampling factors specified by IIOParam.setSourceSubsampling sample code for javax.imageio.IIOParam.setSourceSubsampling(int, int, int, int) definition code for javax.imageio.IIOParam.setSourceSubsampling(int, int, int, int) .

Individual features such as tiling, progressive encoding, and compression may be set in one of four modes. MODE_DISABLED disables the features; MODE_DEFAULT enables the feature with writer-controlled parameter values; MODE_EXPLICIT enables the feature and allows the use of a set method to provide additional parameters; and MODE_COPY_FROM_METADATA copies relevant parameter values from the stream and image metadata objects passed to the writer. The default for all features is MODE_COPY_FROM_METADATA. Non-standard features supplied in subclasses are encouraged, but not required to use a similar scheme.

Plug-in writers may extend the functionality of ImageWriteParam by providing a subclass that implements additional, plug-in specific interfaces. It is up to the plug-in to document what interfaces are available and how they are to be used. Writers will silently ignore any extended features of an ImageWriteParam subclass of which they are not aware. Also, they may ignore any optional features that they normally disable when creating their own ImageWriteParam instances via getDefaultWriteParam.

Note that unless a query method exists for a capability, it must be supported by all ImageWriter implementations (e.g. progressive encoding is optional, but subsampling must be supported).

See Also:
ImageReadParam sample code for javax.imageio.ImageReadParam definition code for javax.imageio.ImageReadParam

Field Summary
protected  boolean canOffsetTiles sample code for javax.imageio.ImageWriteParam.canOffsetTiles definition code for javax.imageio.ImageWriteParam.canOffsetTiles
          A boolean that is true if this ImageWriteParam allows tiling grid offset parameters to be set.
protected  boolean canWriteCompressed sample code for javax.imageio.ImageWriteParam.canWriteCompressed definition code for javax.imageio.ImageWriteParam.canWriteCompressed
          A boolean that is true if this writer can write images using compression.
protected  boolean canWriteProgressive sample code for javax.imageio.ImageWriteParam.canWriteProgressive definition code for javax.imageio.ImageWriteParam.canWriteProgressive
          A boolean that is true if this ImageWriteParam allows images to be written as a progressive sequence of increasing quality passes.
protected  boolean canWriteTiles sample code for javax.imageio.ImageWriteParam.canWriteTiles definition code for javax.imageio.ImageWriteParam.canWriteTiles
          A boolean that is true if this ImageWriteParam allows tile width and tile height parameters to be set.
protected  int compressionMode sample code for javax.imageio.ImageWriteParam.compressionMode definition code for javax.imageio.ImageWriteParam.compressionMode
          The mode controlling compression settings, which must be set to one of the four MODE_* values.
protected  float compressionQuality sample code for javax.imageio.ImageWriteParam.compressionQuality definition code for javax.imageio.ImageWriteParam.compressionQuality
          A float containing the current compression quality setting.
protected  String sample code for java.lang.String definition code for java.lang.String compressionType sample code for javax.imageio.ImageWriteParam.compressionType definition code for javax.imageio.ImageWriteParam.compressionType
          A String containing the name of the current compression type, or null if none is set.
protected  String sample code for java.lang.String definition code for java.lang.String [] compressionTypes sample code for javax.imageio.ImageWriteParam.compressionTypes definition code for javax.imageio.ImageWriteParam.compressionTypes
          An array of Strings containing the names of the available compression types.
protected  Locale sample code for java.util.Locale definition code for java.util.Locale locale sample code for javax.imageio.ImageWriteParam.locale definition code for javax.imageio.ImageWriteParam.locale
          A Locale to be used to localize compression type names and quality descriptions, or null to use a default Locale.
static int MODE_COPY_FROM_METADATA sample code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA definition code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA
          A constant value that may be passed into methods such as setTilingMode, setProgressiveMode, or setCompressionMode to enable that feature for future writes.
static int MODE_DEFAULT sample code for javax.imageio.ImageWriteParam.MODE_DEFAULT definition code for javax.imageio.ImageWriteParam.MODE_DEFAULT
          A constant value that may be passed into methods such as setTilingMode, setProgressiveMode, and setCompressionMode to enable that feature for future writes.
static int MODE_DISABLED sample code for javax.imageio.ImageWriteParam.MODE_DISABLED definition code for javax.imageio.ImageWriteParam.MODE_DISABLED
          A constant value that may be passed into methods such as setTilingMode, setProgressiveMode, and setCompressionMode to disable a feature for future writes.
static int MODE_EXPLICIT sample code for javax.imageio.ImageWriteParam.MODE_EXPLICIT definition code for javax.imageio.ImageWriteParam.MODE_EXPLICIT
          A constant value that may be passed into methods such as setTilingMode or setCompressionMode to enable a feature for future writes.
protected  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension [] preferredTileSizes sample code for javax.imageio.ImageWriteParam.preferredTileSizes definition code for javax.imageio.ImageWriteParam.preferredTileSizes
          An array of preferred tile size range pairs.
protected  int progressiveMode sample code for javax.imageio.ImageWriteParam.progressiveMode definition code for javax.imageio.ImageWriteParam.progressiveMode
          The mode controlling progressive encoding, which must be set to one of the four MODE_* values, except MODE_EXPLICIT.
protected  int tileGridXOffset sample code for javax.imageio.ImageWriteParam.tileGridXOffset definition code for javax.imageio.ImageWriteParam.tileGridXOffset
          The amount by which the tile grid origin should be offset horizontally from the image origin if tiling has been set, or 0 otherwise.
protected  int tileGridYOffset sample code for javax.imageio.ImageWriteParam.tileGridYOffset definition code for javax.imageio.ImageWriteParam.tileGridYOffset
          The amount by which the tile grid origin should be offset vertically from the image origin if tiling has been set, or 0 otherwise.
protected  int tileHeight sample code for javax.imageio.ImageWriteParam.tileHeight definition code for javax.imageio.ImageWriteParam.tileHeight
          The height of each tile if tiling has been set, or 0 otherwise.
protected  int tileWidth sample code for javax.imageio.ImageWriteParam.tileWidth definition code for javax.imageio.ImageWriteParam.tileWidth
          The width of each tile if tiling has been set, or 0 otherwise.
protected  int tilingMode sample code for javax.imageio.ImageWriteParam.tilingMode definition code for javax.imageio.ImageWriteParam.tilingMode
          The mode controlling tiling settings, which Must be set to one of the four MODE_* values.
protected  boolean tilingSet sample code for javax.imageio.ImageWriteParam.tilingSet definition code for javax.imageio.ImageWriteParam.tilingSet
          A boolean that is true if tiling parameters have been specified.
 
Fields inherited from class javax.imageio.IIOParam sample code for javax.imageio.IIOParam definition code for javax.imageio.IIOParam
controller sample code for javax.imageio.IIOParam.controller definition code for javax.imageio.IIOParam.controller , defaultController sample code for javax.imageio.IIOParam.defaultController definition code for javax.imageio.IIOParam.defaultController , destinationOffset sample code for javax.imageio.IIOParam.destinationOffset definition code for javax.imageio.IIOParam.destinationOffset , destinationType sample code for javax.imageio.IIOParam.destinationType definition code for javax.imageio.IIOParam.destinationType , sourceBands sample code for javax.imageio.IIOParam.sourceBands definition code for javax.imageio.IIOParam.sourceBands , sourceRegion sample code for javax.imageio.IIOParam.sourceRegion definition code for javax.imageio.IIOParam.sourceRegion , sourceXSubsampling sample code for javax.imageio.IIOParam.sourceXSubsampling definition code for javax.imageio.IIOParam.sourceXSubsampling , sourceYSubsampling sample code for javax.imageio.IIOParam.sourceYSubsampling definition code for javax.imageio.IIOParam.sourceYSubsampling , subsamplingXOffset sample code for javax.imageio.IIOParam.subsamplingXOffset definition code for javax.imageio.IIOParam.subsamplingXOffset , subsamplingYOffset sample code for javax.imageio.IIOParam.subsamplingYOffset definition code for javax.imageio.IIOParam.subsamplingYOffset
 
Constructor Summary
protected ImageWriteParam sample code for javax.imageio.ImageWriteParam.ImageWriteParam() definition code for javax.imageio.ImageWriteParam.ImageWriteParam() ()
          Constructs an empty ImageWriteParam.
  ImageWriteParam sample code for javax.imageio.ImageWriteParam.ImageWriteParam(java.util.Locale) definition code for javax.imageio.ImageWriteParam.ImageWriteParam(java.util.Locale) (Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
          Constructs an ImageWriteParam set to use a given Locale.
 
Method Summary
 boolean canOffsetTiles sample code for javax.imageio.ImageWriteParam.canOffsetTiles() definition code for javax.imageio.ImageWriteParam.canOffsetTiles() ()
          Returns true if the writer can perform tiling with non-zero grid offsets while writing.
 boolean canWriteCompressed sample code for javax.imageio.ImageWriteParam.canWriteCompressed() definition code for javax.imageio.ImageWriteParam.canWriteCompressed() ()
          Returns true if this writer supports compression.
 boolean canWriteProgressive sample code for javax.imageio.ImageWriteParam.canWriteProgressive() definition code for javax.imageio.ImageWriteParam.canWriteProgressive() ()
          Returns true if the writer can write out images as a series of passes of progressively increasing quality.
 boolean canWriteTiles sample code for javax.imageio.ImageWriteParam.canWriteTiles() definition code for javax.imageio.ImageWriteParam.canWriteTiles() ()
          Returns true if the writer can perform tiling while writing.
 float getBitRate sample code for javax.imageio.ImageWriteParam.getBitRate(float) definition code for javax.imageio.ImageWriteParam.getBitRate(float) (float quality)
          Returns a float indicating an estimate of the number of bits of output data for each bit of input image data at the given quality level.
 int getCompressionMode sample code for javax.imageio.ImageWriteParam.getCompressionMode() definition code for javax.imageio.ImageWriteParam.getCompressionMode() ()
          Returns the current compression mode, if compression is supported.
 float getCompressionQuality sample code for javax.imageio.ImageWriteParam.getCompressionQuality() definition code for javax.imageio.ImageWriteParam.getCompressionQuality() ()
          Returns the current compression quality setting.
 String sample code for java.lang.String definition code for java.lang.String [] getCompressionQualityDescriptions sample code for javax.imageio.ImageWriteParam.getCompressionQualityDescriptions() definition code for javax.imageio.ImageWriteParam.getCompressionQualityDescriptions() ()
          Returns an array of Strings that may be used along with getCompressionQualityValues as part of a user interface for setting or displaying the compression quality level.
 float[] getCompressionQualityValues sample code for javax.imageio.ImageWriteParam.getCompressionQualityValues() definition code for javax.imageio.ImageWriteParam.getCompressionQualityValues() ()
          Returns an array of floats that may be used along with getCompressionQualityDescriptions as part of a user interface for setting or displaying the compression quality level.
 String sample code for java.lang.String definition code for java.lang.String getCompressionType sample code for javax.imageio.ImageWriteParam.getCompressionType() definition code for javax.imageio.ImageWriteParam.getCompressionType() ()
          Returns the currently set compression type, or null if none has been set.
 String sample code for java.lang.String definition code for java.lang.String [] getCompressionTypes sample code for javax.imageio.ImageWriteParam.getCompressionTypes() definition code for javax.imageio.ImageWriteParam.getCompressionTypes() ()
          Returns a list of available compression types, as an array or Strings, or null if a compression type may not be chosen using these interfaces.
 Locale sample code for java.util.Locale definition code for java.util.Locale getLocale sample code for javax.imageio.ImageWriteParam.getLocale() definition code for javax.imageio.ImageWriteParam.getLocale() ()
          Returns the currently set Locale, or null if only a default Locale is supported.
 String sample code for java.lang.String definition code for java.lang.String getLocalizedCompressionTypeName sample code for javax.imageio.ImageWriteParam.getLocalizedCompressionTypeName() definition code for javax.imageio.ImageWriteParam.getLocalizedCompressionTypeName() ()
          Returns a localized version of the name of the current compression type, using the Locale returned by getLocale.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension [] getPreferredTileSizes sample code for javax.imageio.ImageWriteParam.getPreferredTileSizes() definition code for javax.imageio.ImageWriteParam.getPreferredTileSizes() ()
          Returns an array of Dimensions indicating the legal size ranges for tiles as they will be encoded in the output file or stream.
 int getProgressiveMode sample code for javax.imageio.ImageWriteParam.getProgressiveMode() definition code for javax.imageio.ImageWriteParam.getProgressiveMode() ()
          Returns the current mode for writing the stream in a progressive manner.
 int getTileGridXOffset sample code for javax.imageio.ImageWriteParam.getTileGridXOffset() definition code for javax.imageio.ImageWriteParam.getTileGridXOffset() ()
          Returns the horizontal tile grid offset of an image as it will be written to the output stream.
 int getTileGridYOffset sample code for javax.imageio.ImageWriteParam.getTileGridYOffset() definition code for javax.imageio.ImageWriteParam.getTileGridYOffset() ()
          Returns the vertical tile grid offset of an image as it will be written to the output stream.
 int getTileHeight sample code for javax.imageio.ImageWriteParam.getTileHeight() definition code for javax.imageio.ImageWriteParam.getTileHeight() ()
          Returns the height of each tile in an image as it will be written to the output stream.
 int getTileWidth sample code for javax.imageio.ImageWriteParam.getTileWidth() definition code for javax.imageio.ImageWriteParam.getTileWidth() ()
          Returns the width of each tile in an image as it will be written to the output stream.
 int getTilingMode sample code for javax.imageio.ImageWriteParam.getTilingMode() definition code for javax.imageio.ImageWriteParam.getTilingMode() ()
          Returns the current tiling mode, if tiling is supported.
 boolean isCompressionLossless sample code for javax.imageio.ImageWriteParam.isCompressionLossless() definition code for javax.imageio.ImageWriteParam.isCompressionLossless() ()
          Returns true if the current compression type provides lossless compression.
 void setCompressionMode sample code for javax.imageio.ImageWriteParam.setCompressionMode(int) definition code for javax.imageio.ImageWriteParam.setCompressionMode(int) (int mode)
          Specifies whether compression is to be performed, and if so how compression parameters are to be determined.
 void setCompressionQuality sample code for javax.imageio.ImageWriteParam.setCompressionQuality(float) definition code for javax.imageio.ImageWriteParam.setCompressionQuality(float) (float quality)
          Sets the compression quality to a value between 0 and 1.
 void setCompressionType sample code for javax.imageio.ImageWriteParam.setCompressionType(java.lang.String) definition code for javax.imageio.ImageWriteParam.setCompressionType(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  compressionType)
          Sets the compression type to one of the values indicated by getCompressionTypes.
 void setProgressiveMode sample code for javax.imageio.ImageWriteParam.setProgressiveMode(int) definition code for javax.imageio.ImageWriteParam.setProgressiveMode(int) (int mode)
          Specifies that the writer is to write the image out in a progressive mode such that the stream will contain a series of scans of increasing quality.
 void setTiling sample code for javax.imageio.ImageWriteParam.setTiling(int, int, int, int) definition code for javax.imageio.ImageWriteParam.setTiling(int, int, int, int) (int tileWidth, int tileHeight, int tileGridXOffset, int tileGridYOffset)
          Specifies that the image should be tiled in the output stream.
 void setTilingMode sample code for javax.imageio.ImageWriteParam.setTilingMode(int) definition code for javax.imageio.ImageWriteParam.setTilingMode(int) (int mode)
          Determines whether the image will be tiled in the output stream and, if it will, how the tiling parameters will be determined.
 void unsetCompression sample code for javax.imageio.ImageWriteParam.unsetCompression() definition code for javax.imageio.ImageWriteParam.unsetCompression() ()
          Removes any previous compression type and quality settings.
 void unsetTiling sample code for javax.imageio.ImageWriteParam.unsetTiling() definition code for javax.imageio.ImageWriteParam.unsetTiling() ()
          Removes any previous tile grid parameters specified by calls to setTiling.
 
Methods inherited from class javax.imageio.IIOParam sample code for javax.imageio.IIOParam definition code for javax.imageio.IIOParam
activateController sample code for javax.imageio.IIOParam.activateController() definition code for javax.imageio.IIOParam.activateController() , getController sample code for javax.imageio.IIOParam.getController() definition code for javax.imageio.IIOParam.getController() , getDefaultController sample code for javax.imageio.IIOParam.getDefaultController() definition code for javax.imageio.IIOParam.getDefaultController() , getDestinationOffset sample code for javax.imageio.IIOParam.getDestinationOffset() definition code for javax.imageio.IIOParam.getDestinationOffset() , getDestinationType sample code for javax.imageio.IIOParam.getDestinationType() definition code for javax.imageio.IIOParam.getDestinationType() , getSourceBands sample code for javax.imageio.IIOParam.getSourceBands() definition code for javax.imageio.IIOParam.getSourceBands() , getSourceRegion sample code for javax.imageio.IIOParam.getSourceRegion() definition code for javax.imageio.IIOParam.getSourceRegion() , getSourceXSubsampling sample code for javax.imageio.IIOParam.getSourceXSubsampling() definition code for javax.imageio.IIOParam.getSourceXSubsampling() , getSourceYSubsampling sample code for javax.imageio.IIOParam.getSourceYSubsampling() definition code for javax.imageio.IIOParam.getSourceYSubsampling() , getSubsamplingXOffset sample code for javax.imageio.IIOParam.getSubsamplingXOffset() definition code for javax.imageio.IIOParam.getSubsamplingXOffset() , getSubsamplingYOffset sample code for javax.imageio.IIOParam.getSubsamplingYOffset() definition code for javax.imageio.IIOParam.getSubsamplingYOffset() , hasController sample code for javax.imageio.IIOParam.hasController() definition code for javax.imageio.IIOParam.hasController() , setController sample code for javax.imageio.IIOParam.setController(javax.imageio.IIOParamController) definition code for javax.imageio.IIOParam.setController(javax.imageio.IIOParamController) , setDestinationOffset sample code for javax.imageio.IIOParam.setDestinationOffset(java.awt.Point) definition code for javax.imageio.IIOParam.setDestinationOffset(java.awt.Point) , setDestinationType sample code for javax.imageio.IIOParam.setDestinationType(javax.imageio.ImageTypeSpecifier) definition code for javax.imageio.IIOParam.setDestinationType(javax.imageio.ImageTypeSpecifier) , setSourceBands sample code for javax.imageio.IIOParam.setSourceBands(int[]) definition code for javax.imageio.IIOParam.setSourceBands(int[]) , setSourceRegion sample code for javax.imageio.IIOParam.setSourceRegion(java.awt.Rectangle) definition code for javax.imageio.IIOParam.setSourceRegion(java.awt.Rectangle) , setSourceSubsampling sample code for javax.imageio.IIOParam.setSourceSubsampling(int, int, int, int) definition code for javax.imageio.IIOParam.setSourceSubsampling(int, int, int, int)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

MODE_DISABLED sample code for javax.imageio.ImageWriteParam.MODE_DISABLED

public static final int MODE_DISABLED
A constant value that may be passed into methods such as setTilingMode, setProgressiveMode, and setCompressionMode to disable a feature for future writes. That is, when this mode is set the stream will not be tiled, progressive, or compressed, and the relevant accessor methods will throw an IllegalStateException.

See Also:
MODE_EXPLICIT sample code for javax.imageio.ImageWriteParam.MODE_EXPLICIT definition code for javax.imageio.ImageWriteParam.MODE_EXPLICIT , MODE_COPY_FROM_METADATA sample code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA definition code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA , MODE_DEFAULT sample code for javax.imageio.ImageWriteParam.MODE_DEFAULT definition code for javax.imageio.ImageWriteParam.MODE_DEFAULT , setProgressiveMode(int) sample code for javax.imageio.ImageWriteParam.setProgressiveMode(int) definition code for javax.imageio.ImageWriteParam.setProgressiveMode(int) , getProgressiveMode() sample code for javax.imageio.ImageWriteParam.getProgressiveMode() definition code for javax.imageio.ImageWriteParam.getProgressiveMode() , setTilingMode(int) sample code for javax.imageio.ImageWriteParam.setTilingMode(int) definition code for javax.imageio.ImageWriteParam.setTilingMode(int) , getTilingMode() sample code for javax.imageio.ImageWriteParam.getTilingMode() definition code for javax.imageio.ImageWriteParam.getTilingMode() , setCompressionMode(int) sample code for javax.imageio.ImageWriteParam.setCompressionMode(int) definition code for javax.imageio.ImageWriteParam.setCompressionMode(int) , getCompressionMode() sample code for javax.imageio.ImageWriteParam.getCompressionMode() definition code for javax.imageio.ImageWriteParam.getCompressionMode() , Constant Field Values

MODE_DEFAULT sample code for javax.imageio.ImageWriteParam.MODE_DEFAULT

public static final int MODE_DEFAULT
A constant value that may be passed into methods such as setTilingMode, setProgressiveMode, and setCompressionMode to enable that feature for future writes. That is, when this mode is enabled the stream will be tiled, progressive, or compressed according to a sensible default chosen internally by the writer in a plug-in dependent way, and the relevant accessor methods will throw an IllegalStateException.

See Also:
MODE_DISABLED sample code for javax.imageio.ImageWriteParam.MODE_DISABLED definition code for javax.imageio.ImageWriteParam.MODE_DISABLED , MODE_EXPLICIT sample code for javax.imageio.ImageWriteParam.MODE_EXPLICIT definition code for javax.imageio.ImageWriteParam.MODE_EXPLICIT , MODE_COPY_FROM_METADATA sample code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA definition code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA , setProgressiveMode(int) sample code for javax.imageio.ImageWriteParam.setProgressiveMode(int) definition code for javax.imageio.ImageWriteParam.setProgressiveMode(int) , getProgressiveMode() sample code for javax.imageio.ImageWriteParam.getProgressiveMode() definition code for javax.imageio.ImageWriteParam.getProgressiveMode() , setTilingMode(int) sample code for javax.imageio.ImageWriteParam.setTilingMode(int) definition code for javax.imageio.ImageWriteParam.setTilingMode(int) , getTilingMode() sample code for javax.imageio.ImageWriteParam.getTilingMode() definition code for javax.imageio.ImageWriteParam.getTilingMode() , setCompressionMode(int) sample code for javax.imageio.ImageWriteParam.setCompressionMode(int) definition code for javax.imageio.ImageWriteParam.setCompressionMode(int) , getCompressionMode() sample code for javax.imageio.ImageWriteParam.getCompressionMode() definition code for javax.imageio.ImageWriteParam.getCompressionMode() , Constant Field Values

MODE_EXPLICIT sample code for javax.imageio.ImageWriteParam.MODE_EXPLICIT

public static final int MODE_EXPLICIT
A constant value that may be passed into methods such as setTilingMode or setCompressionMode to enable a feature for future writes. That is, when this mode is set the stream will be tiled or compressed according to additional information supplied to the corresponding set methods in this class and retrievable from the corresponding get methods. Note that this mode is not supported for progressive output.

See Also:
MODE_DISABLED sample code for javax.imageio.ImageWriteParam.MODE_DISABLED definition code for javax.imageio.ImageWriteParam.MODE_DISABLED , MODE_COPY_FROM_METADATA sample code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA definition code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA , MODE_DEFAULT sample code for javax.imageio.ImageWriteParam.MODE_DEFAULT definition code for javax.imageio.ImageWriteParam.MODE_DEFAULT , setProgressiveMode(int) sample code for javax.imageio.ImageWriteParam.setProgressiveMode(int) definition code for javax.imageio.ImageWriteParam.setProgressiveMode(int) , getProgressiveMode() sample code for javax.imageio.ImageWriteParam.getProgressiveMode() definition code for javax.imageio.ImageWriteParam.getProgressiveMode() , setTilingMode(int) sample code for javax.imageio.ImageWriteParam.setTilingMode(int) definition code for javax.imageio.ImageWriteParam.setTilingMode(int) , getTilingMode() sample code for javax.imageio.ImageWriteParam.getTilingMode() definition code for javax.imageio.ImageWriteParam.getTilingMode() , setCompressionMode(int) sample code for javax.imageio.ImageWriteParam.setCompressionMode(int) definition code for javax.imageio.ImageWriteParam.setCompressionMode(int) , getCompressionMode() sample code for javax.imageio.ImageWriteParam.getCompressionMode() definition code for javax.imageio.ImageWriteParam.getCompressionMode() , Constant Field Values

MODE_COPY_FROM_METADATA sample code for javax.imageio.ImageWriteParam.MODE_COPY_FROM_METADATA