public class ImageWriterParams
extends java.lang.Object
Constructor and Description |
---|
ImageWriterParams()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCompressionMethod() |
java.lang.Boolean |
getJPEGForceBaseline() |
java.lang.Float |
getJPEGQuality() |
java.lang.Integer |
getResolution() |
void |
setCompressionMethod(java.lang.String method)
Set the compression method that shall be used to encode the image.
|
void |
setJPEGQuality(float quality,
boolean forceBaseline)
Sets the quality setting for encoding JPEG images.
|
void |
setResolution(int dpi)
Sets the target resolution of the bitmap image to be written.
|
public java.lang.Integer getResolution()
public java.lang.Float getJPEGQuality()
public java.lang.Boolean getJPEGForceBaseline()
public java.lang.String getCompressionMethod()
public void setResolution(int dpi)
dpi
- the resolution in dpipublic void setJPEGQuality(float quality, boolean forceBaseline)
quality
- the quality setting (0.0-1.0)forceBaseline
- force baseline quantization tablepublic void setCompressionMethod(java.lang.String method)
method
- the compression methodCopyright © 2022 Apache Software Foundation. All Rights Reserved.