Package org.apache.fop.render.bitmap
Class BitmapRenderingSettings
- java.lang.Object
-
- org.apache.fop.render.java2d.Java2DRenderingSettings
-
- org.apache.fop.render.bitmap.BitmapRenderingSettings
-
public class BitmapRenderingSettings extends Java2DRenderingSettings
This class holds settings used when rendering to bitmaps.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
antialiasing
true if anti-aliasing is setprivate int
bufferedImageType
Image Type as parameter for the BufferedImage constructor (see BufferedImage.TYPE_*)private boolean
qualityRendering
true if qualityRendering is setprivate org.apache.xmlgraphics.image.writer.ImageWriterParams
writerParams
ImageWriter parameters
-
Constructor Summary
Constructors Constructor Description BitmapRenderingSettings()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBufferedImageType()
Returns the BufferedImage type.java.lang.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(java.lang.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.-
Methods inherited from class org.apache.fop.render.java2d.Java2DRenderingSettings
getPageBackgroundColor, hasTransparentPageBackground, setPageBackgroundColor
-
-
-
-
Field Detail
-
writerParams
private org.apache.xmlgraphics.image.writer.ImageWriterParams writerParams
ImageWriter parameters
-
bufferedImageType
private int bufferedImageType
Image Type as parameter for the BufferedImage constructor (see BufferedImage.TYPE_*)
-
antialiasing
private boolean antialiasing
true if anti-aliasing is set
-
qualityRendering
private boolean qualityRendering
true if qualityRendering is set
-
-
Method Detail
-
getWriterParams
public org.apache.xmlgraphics.image.writer.ImageWriterParams getWriterParams()
Returns the image writer parameters used for encoding the bitmap images.- Returns:
- the image writer parameters
-
getBufferedImageType
public int getBufferedImageType()
Returns the BufferedImage type.- Returns:
- one of BufferedImage.TYPE_*
-
setBufferedImageType
public void setBufferedImageType(int bufferedImageType)
Sets the type of the BufferedImage to use when preparing a new instance.- Parameters:
bufferedImageType
- a BufferImage.TYPE_* value
-
setAntiAliasing
public void setAntiAliasing(boolean value)
Enables or disables anti-aliasing.- Parameters:
value
- true to enable anti-aliasing
-
isAntiAliasingEnabled
public boolean isAntiAliasingEnabled()
Indicates whether anti-aliasing is enabled.- Returns:
- true if anti-aliasing is enabled
-
setQualityRendering
public void setQualityRendering(boolean quality)
Controls whether to optimize rendering for speed or for quality.- Parameters:
quality
- true to optimize for quality, false to optimize for speed
-
isQualityRenderingEnabled
public boolean isQualityRenderingEnabled()
Indicates whether quality rendering is enabled.- Returns:
- true indicates optimization for quality, false indicates optimization for speed
-
setCompressionMethod
public void setCompressionMethod(java.lang.String compressionMethod)
Sets the compression method for the image writer.- Parameters:
compressionMethod
- the compression method name
-
getCompressionMethod
public java.lang.String getCompressionMethod()
Returns the compression method being used by the image writer.- Returns:
- the compression method in use
-
setResolution
public void setResolution(int dpi)
Sets the resolution of the output image.- Parameters:
dpi
- the dots-per-inch of the image
-
-