|
xmlgraphics-commons 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImageConverter
Defines an image converter that can convert one image representation into another.
| Field Summary | |
|---|---|
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). |
| Method Summary | |
|---|---|
Image |
convert(Image src,
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. |
| Field Detail |
|---|
static final int NO_CONVERSION_PENALTY
static final int MINIMAL_CONVERSION_PENALTY
static final int MEDIUM_CONVERSION_PENALTY
| Method Detail |
|---|
Image convert(Image src,
Map hints)
throws ImageException,
IOException
Consumers can get the effective MIME type (if any) from the
associated ImageFlavor.
src - the source imagehints - the conversion hints
ImageException - if an error occurs while converting the image
IOException - if an I/O error occurs while converting the imageImageFlavor getTargetFlavor()
ImageFlavor getSourceFlavor()
int getConversionPenalty()
|
xmlgraphics-commons 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||