| java.lang.Object org.apache.xmlgraphics.image.writer.ImageWriterParams
ImageWriterParams | public class ImageWriterParams (Code) | | Parameters for the encoder which is accessed through the
ImageWriter interface.
version: $Id: ImageWriterParams.java 496556 2007-01-16 00:59:48Z cam $ |
ImageWriterParams | public ImageWriterParams()(Code) | | Default constructor.
|
getCompressionMethod | public String getCompressionMethod()(Code) | | the compression method for encoding the image |
getJPEGForceBaseline | public Boolean getJPEGForceBaseline()(Code) | | true if the baseline quantization table is forced,or null if undefined. |
getJPEGQuality | public Float getJPEGQuality()(Code) | | the quality value for encoding a JPEG image(0.0-1.0), or null if undefined |
getResolution | public Integer getResolution()(Code) | | the image resolution in dpi, or null if undefined |
setCompressionMethod | public void setCompressionMethod(String method)(Code) | | Set the compression method that shall be used to encode the image.
Parameters: method - the compression method |
setJPEGQuality | public void setJPEGQuality(float quality, boolean forceBaseline)(Code) | | Sets the quality setting for encoding JPEG images.
Parameters: quality - the quality setting (0.0-1.0) Parameters: forceBaseline - force baseline quantization table |
setResolution | public void setResolution(int dpi)(Code) | | Sets the target resolution of the bitmap image to be written.
Parameters: dpi - the resolution in dpi |
|
|