Java javax.imageio ImageWriteParam fields, constructors, methods, implement or subclass

Example usage for Java javax.imageio ImageWriteParam fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.imageio ImageWriteParam.

The text is from its open source code.

Field

intMODE_DISABLED
A constant value that may be passed into methods such as setTilingMode , setProgressiveMode , and setCompressionMode to disable a feature for future writes.
intMODE_DEFAULT
A constant value that may be passed into methods such as setTilingMode , setProgressiveMode , and setCompressionMode to enable that feature for future writes.
intMODE_EXPLICIT
A constant value that may be passed into methods such as setTilingMode or setCompressionMode to enable a feature for future writes.
booleancanWriteTiles
A boolean that is true if this ImageWriteParam allows tile width and tile height parameters to be set.
booleancanOffsetTiles
A boolean that is true if this ImageWriteParam allows tiling grid offset parameters to be set.
booleancanWriteProgressive
A boolean that is true if this ImageWriteParam allows images to be written as a progressive sequence of increasing quality passes.
booleancanWriteCompressed
A boolean that is true if this writer can write images using compression.

Method

StringgetCompressionType()
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.
RectanglegetSourceRegion()
Returns the source region to be used.
intgetSourceXSubsampling()
Returns the number of source columns to advance for each pixel.
intgetSourceYSubsampling()
Returns the number of rows to advance for each pixel.
voidsetCompressionMode(int mode)
Specifies whether compression is to be performed, and if so how compression parameters are to be determined.
voidsetCompressionQuality(float quality)
Sets the compression quality to a value between 0 and 1 .
voidsetCompressionType(String compressionType)
Sets the compression type to one of the values indicated by getCompressionTypes .
voidsetDestinationType(ImageTypeSpecifier destinationType)
Sets the desired image type for the destination image, using an ImageTypeSpecifier .
voidsetProgressiveMode(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.
voidsetSourceBands(int[] sourceBands)
Sets the indices of the source bands to be used.
voidsetSourceSubsampling(int sourceXSubsampling, int sourceYSubsampling, int subsamplingXOffset, int subsamplingYOffset)
Specifies a decimation subsampling to apply on I/O.
voidsetTiling(int tileWidth, int tileHeight, int tileGridXOffset, int tileGridYOffset)
Specifies that the image should be tiled in the output stream.
voidsetTilingMode(int mode)
Determines whether the image will be tiled in the output stream and, if it will, how the tiling parameters will be determined.