Class ImageConverterRendered2PNG
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.AbstractImageConverter
org.apache.xmlgraphics.image.loader.impl.ImageConverterRendered2PNG
- All Implemented Interfaces:
ImageConverter
This ImageConverter converts Rendered to PNG images.
-
Field Summary
Fields inherited from interface org.apache.xmlgraphics.image.loader.spi.ImageConverter
MEDIUM_CONVERSION_PENALTY, MINIMAL_CONVERSION_PENALTY, NO_CONVERSION_PENALTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts an image into a different representation.Returns the flavor that this converter expects.Returns the flavor that this converter converts images into.Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImageConverter
checkSourceFlavor, getConversionPenalty
-
Constructor Details
-
ImageConverterRendered2PNG
public ImageConverterRendered2PNG()
-
-
Method Details
-
convert
Converts an image into a different representation.Consumers can get the effective MIME type (if any) from the associated
ImageFlavor
.- Parameters:
src
- the source imagehints
- the conversion hints- Returns:
- the converted image
- Throws:
ImageException
- if an error occurs while converting the imageIOException
- if an I/O error occurs while converting the image
-
getSourceFlavor
Returns the flavor that this converter expects.- Returns:
- the source flavor
-
getTargetFlavor
Returns the flavor that this converter converts images into.- Returns:
- the target flavor
-