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.
-
-
Constructor Summary
Constructors Constructor Description BitmapRenderingSettings()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBufferedImageType()Returns the BufferedImage type.java.lang.StringgetCompressionMethod()Returns the compression method being used by the image writer.org.apache.xmlgraphics.image.writer.ImageWriterParamsgetWriterParams()Returns the image writer parameters used for encoding the bitmap images.booleanisAntiAliasingEnabled()Indicates whether anti-aliasing is enabled.booleanisQualityRenderingEnabled()Indicates whether quality rendering is enabled.voidsetAntiAliasing(boolean value)Enables or disables anti-aliasing.voidsetBufferedImageType(int bufferedImageType)Sets the type of the BufferedImage to use when preparing a new instance.voidsetCompressionMethod(java.lang.String compressionMethod)Sets the compression method for the image writer.voidsetQualityRendering(boolean quality)Controls whether to optimize rendering for speed or for quality.voidsetResolution(int dpi)Sets the resolution of the output image.-
Methods inherited from class org.apache.fop.render.java2d.Java2DRenderingSettings
getPageBackgroundColor, hasTransparentPageBackground, setPageBackgroundColor
-
-
-
-
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
-
-