Example usage for Java javax.imageio ImageWriteParam fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
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. |
int | MODE_EXPLICIT A constant value that may be passed into methods such as setTilingMode or setCompressionMode to enable a feature for future writes. |
boolean | canWriteTiles A boolean that is true if this ImageWriteParam allows tile width and tile height parameters to be set. |
boolean | canOffsetTiles A boolean that is true if this ImageWriteParam allows tiling grid offset parameters to be set. |
boolean | canWriteProgressive A boolean that is true if this ImageWriteParam allows images to be written as a progressive sequence of increasing quality passes. |
boolean | canWriteCompressed A boolean that is true if this writer can write images using compression. |
String | getCompressionType() Returns the currently set compression type, or null if none has been set. |
String[] | getCompressionTypes() Returns a list of available compression types, as an array or String s, or null if a compression type may not be chosen using these interfaces. |
Rectangle | getSourceRegion() Returns the source region to be used. |
int | getSourceXSubsampling() Returns the number of source columns to advance for each pixel. |
int | getSourceYSubsampling() Returns the number of rows to advance for each pixel. |
void | setCompressionMode(int mode) Specifies whether compression is to be performed, and if so how compression parameters are to be determined. |
void | setCompressionQuality(float quality) Sets the compression quality to a value between 0 and 1 . |
void | setCompressionType(String compressionType) Sets the compression type to one of the values indicated by getCompressionTypes . |
void | setDestinationType(ImageTypeSpecifier destinationType) Sets the desired image type for the destination image, using an ImageTypeSpecifier . |
void | setProgressiveMode(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 | setSourceBands(int[] sourceBands) Sets the indices of the source bands to be used. |
void | setSourceSubsampling(int sourceXSubsampling, int sourceYSubsampling, int subsamplingXOffset, int subsamplingYOffset) Specifies a decimation subsampling to apply on I/O. |
void | setTiling(int tileWidth, int tileHeight, int tileGridXOffset, int tileGridYOffset) Specifies that the image should be tiled in the output stream. |
void | setTilingMode(int mode) Determines whether the image will be tiled in the output stream and, if it will, how the tiling parameters will be determined. |