Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| fop 1.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`DefaultMonochromeBitmapConverter()`

Method Summary
`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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultMonochromeBitmapConverter

    public DefaultMonochromeBitmapConverter()

Method Detail

### setHint

    public void setHint(java.lang.String name,
                        java.lang.String value)

  Sets a hint to the implementation

  Specified by:
    `setHint` in interface `MonochromeBitmapConverter`
  Parameters:
    `name` - the name of the hint
    `value` - 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 interface `MonochromeBitmapConverter`
  Parameters:
    `img` - the original image
  Returns:
    the converted monochrome image

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| fop 1.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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