public class JAIMonochromeBitmapConverter extends Object implements MonochromeBitmapConverter
If you call setHint("quality", "true") on the instance you can enabled error diffusion dithering which produces a nicer result but is also a lot slower.
Constructor and Description |
---|
JAIMonochromeBitmapConverter() |
Modifier and Type | Method and Description |
---|---|
RenderedImage |
convertToMonochrome(BufferedImage img)
Converts a bitmap image to a monochrome (1-bit) b/w bitmap image.
|
void |
setHint(String name,
String value)
Sets a hint to the implementation
|
public void setHint(String name, String value)
setHint
in interface MonochromeBitmapConverter
name
- the name of the hintvalue
- the valuepublic RenderedImage convertToMonochrome(BufferedImage img)
convertToMonochrome
in interface MonochromeBitmapConverter
img
- the original imageCopyright © 2025 Apache Software Foundation. All rights reserved.