|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.impl.AbstractImageConverter
org.apache.xmlgraphics.image.loader.impl.ImageConverterBuffered2Rendered
public class ImageConverterBuffered2Rendered
This ImageConverter converts BufferedImages to RenderedImages (well, it's basically just a class cast).
Field Summary |
---|
Fields inherited from interface org.apache.xmlgraphics.image.loader.spi.ImageConverter |
---|
MEDIUM_CONVERSION_PENALTY, MINIMAL_CONVERSION_PENALTY, NO_CONVERSION_PENALTY |
Constructor Summary | |
---|---|
ImageConverterBuffered2Rendered()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImageConverter |
---|
checkSourceFlavor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageConverterBuffered2Rendered()
Method Detail |
---|
public Image convert(Image src, java.util.Map hints)
The new image returned shall preserve the original ImageInfo
instance.
Consumers can get the effective MIME type (if any) from the associated ImageFlavor
.
src
- the source imagehints
- the conversion hints
public ImageFlavor getSourceFlavor()
public ImageFlavor getTargetFlavor()
public int getConversionPenalty()
getConversionPenalty
in interface ImageConverter
getConversionPenalty
in class AbstractImageConverter
|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |