xmlgraphics-commons 1.4

org.apache.xmlgraphics.image.loader.impl
Class ImageConverterBitmap2G2D

java.lang.Object
  extended by org.apache.xmlgraphics.image.loader.impl.AbstractImageConverter
      extended by org.apache.xmlgraphics.image.loader.impl.ImageConverterBitmap2G2D
All Implemented Interfaces:
ImageConverter

public class ImageConverterBitmap2G2D
extends AbstractImageConverter

This ImageConverter wraps a bitmap image in a Graphics2D image.


Field Summary
 
Fields inherited from interface org.apache.xmlgraphics.image.loader.spi.ImageConverter
MEDIUM_CONVERSION_PENALTY, MINIMAL_CONVERSION_PENALTY, NO_CONVERSION_PENALTY
 
Constructor Summary
ImageConverterBitmap2G2D()
           
 
Method Summary
 Image convert(Image src, java.util.Map hints)
          Converts an image into a different representation.
 ImageFlavor getSourceFlavor()
          Returns the flavor that this converter expects.
 ImageFlavor getTargetFlavor()
          Returns the flavor that this converter converts images into.
 
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImageConverter
checkSourceFlavor, getConversionPenalty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageConverterBitmap2G2D

public ImageConverterBitmap2G2D()
Method Detail

convert

public Image convert(Image src,
                     java.util.Map hints)
Converts an image into a different representation.

The new image returned shall preserve the original ImageInfo instance. Consumers can get the effective MIME type (if any) from the associated ImageFlavor.

Parameters:
src - the source image
hints - the conversion hints
Returns:
the converted image

getSourceFlavor

public ImageFlavor getSourceFlavor()
Returns the flavor that this converter expects.

Returns:
the source flavor

getTargetFlavor

public ImageFlavor getTargetFlavor()
Returns the flavor that this converter converts images into.

Returns:
the target flavor

xmlgraphics-commons 1.4

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