org.apache.fop.render.pcl

Class JAIMonochromeBitmapConverter

Implemented Interfaces:
MonochromeBitmapConverter

public class JAIMonochromeBitmapConverter
extends java.lang.Object
implements MonochromeBitmapConverter

Implementation of the MonochromeBitmapConverter which uses Java Advanced Imaging (JAI) to convert grayscale bitmaps to monochrome bitmaps. JAI provides better dithering options including error diffusion dithering.

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.

Method Summary

RenderedImage
convertToMonochrome(BufferedImage img)
void
setHint(String name, String value)

Method Details

convertToMonochrome

public RenderedImage convertToMonochrome(BufferedImage img)
Specified by:
convertToMonochrome in interface MonochromeBitmapConverter

setHint

public void setHint(String name,
                    String value)
Specified by:
setHint in interface MonochromeBitmapConverter

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.