Package org.apache.fop.util.bitmap
Class DefaultMonochromeBitmapConverter
- java.lang.Object
-
- org.apache.fop.util.bitmap.DefaultMonochromeBitmapConverter
-
- All Implemented Interfaces:
MonochromeBitmapConverter
public class DefaultMonochromeBitmapConverter extends java.lang.Object implements MonochromeBitmapConverter
Default implementation of the MonochromeBitmapConverter which uses the Java Class Library to convert grayscale bitmaps to monochrome bitmaps.
-
-
Constructor Summary
Constructors Constructor Description DefaultMonochromeBitmapConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.RenderedImage
convertToMonochrome(java.awt.image.BufferedImage img)
Converts a bitmap image to a monochrome (1-bit) b/w bitmap image.void
setHint(java.lang.String name, java.lang.String value)
Sets a hint to the implementation
-
-
-
Method Detail
-
setHint
public void setHint(java.lang.String name, java.lang.String value)
Sets a hint to the implementation- Specified by:
setHint
in interfaceMonochromeBitmapConverter
- Parameters:
name
- the name of the hintvalue
- the value
-
convertToMonochrome
public java.awt.image.RenderedImage convertToMonochrome(java.awt.image.BufferedImage img)
Converts a bitmap image to a monochrome (1-bit) b/w bitmap image.- Specified by:
convertToMonochrome
in interfaceMonochromeBitmapConverter
- Parameters:
img
- the original image- Returns:
- the converted monochrome image
-
-