AbstractImageConverter
, ImageConverterBitmap2G2D
, ImageConverterBuffered2Rendered
, ImageConverterG2D2Bitmap
, ImageConverterRendered2PNG
public interface ImageConverter
Modifier and Type | Field | Description |
---|---|---|
static int |
MEDIUM_CONVERSION_PENALTY |
Default/Medium conversion penalty (if there's some effort to convert the image format)
|
static int |
MINIMAL_CONVERSION_PENALTY |
Used if the conversion penalty is minimal
|
static int |
NO_CONVERSION_PENALTY |
Used if the conversion penalty is negligible (for example a simple cast).
|
Modifier and Type | Method | Description |
---|---|---|
Image |
convert(Image src,
java.util.Map hints) |
Converts an image into a different representation.
|
int |
getConversionPenalty() |
Returns the conversion penalty for the conversion that this implementation supports.
|
ImageFlavor |
getSourceFlavor() |
Returns the flavor that this converter expects.
|
ImageFlavor |
getTargetFlavor() |
Returns the flavor that this converter converts images into.
|
static final int NO_CONVERSION_PENALTY
static final int MINIMAL_CONVERSION_PENALTY
static final int MEDIUM_CONVERSION_PENALTY
Image convert(Image src, java.util.Map hints) throws ImageException, java.io.IOException
Consumers can get the effective MIME type (if any) from the
associated ImageFlavor
.
src
- the source imagehints
- the conversion hintsImageException
- if an error occurs while converting the imagejava.io.IOException
- if an I/O error occurs while converting the imageImageFlavor getTargetFlavor()
ImageFlavor getSourceFlavor()
int getConversionPenalty()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.