public class BitmapRenderingSettings extends Java2DRenderingSettings
Constructor and Description |
---|
BitmapRenderingSettings()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBufferedImageType()
Returns the BufferedImage type.
|
String |
getCompressionMethod()
Returns the compression method being used by the image writer.
|
org.apache.xmlgraphics.image.writer.ImageWriterParams |
getWriterParams()
Returns the image writer parameters used for encoding the bitmap images.
|
boolean |
isAntiAliasingEnabled()
Indicates whether anti-aliasing is enabled.
|
boolean |
isQualityRenderingEnabled()
Indicates whether quality rendering is enabled.
|
void |
setAntiAliasing(boolean value)
Enables or disables anti-aliasing.
|
void |
setBufferedImageType(int bufferedImageType)
Sets the type of the BufferedImage to use when preparing a new instance.
|
void |
setCompressionMethod(String compressionMethod)
Sets the compression method for the image writer.
|
void |
setQualityRendering(boolean quality)
Controls whether to optimize rendering for speed or for quality.
|
void |
setResolution(int dpi)
Sets the resolution of the output image.
|
getPageBackgroundColor, hasTransparentPageBackground, setPageBackgroundColor
public BitmapRenderingSettings()
public org.apache.xmlgraphics.image.writer.ImageWriterParams getWriterParams()
public int getBufferedImageType()
public void setBufferedImageType(int bufferedImageType)
bufferedImageType
- a BufferImage.TYPE_* valuepublic void setAntiAliasing(boolean value)
value
- true to enable anti-aliasingpublic boolean isAntiAliasingEnabled()
public void setQualityRendering(boolean quality)
quality
- true to optimize for quality, false to optimize for speedpublic boolean isQualityRenderingEnabled()
public void setCompressionMethod(String compressionMethod)
compressionMethod
- the compression method namepublic String getCompressionMethod()
public void setResolution(int dpi)
dpi
- the dots-per-inch of the imageCopyright © 2025 Apache Software Foundation. All rights reserved.