Class ImageBuffered
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.AbstractImage
org.apache.xmlgraphics.image.loader.impl.ImageRendered
org.apache.xmlgraphics.image.loader.impl.ImageBuffered
- All Implemented Interfaces:
Image
This class is an implementation of the Image interface exposing a BufferedImage.
-
Constructor Summary
ConstructorsConstructorDescriptionImageBuffered(ImageInfo info, BufferedImage buffered, Color transparentColor) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the contained BufferedImage instance.Returns the flavor of the image.Methods inherited from class ImageRendered
getColorSpace, getICCProfile, getRenderedImage, getTransparentColor, isCacheableMethods inherited from class AbstractImage
getInfo, getSize, toString
-
Constructor Details
-
ImageBuffered
Main constructor.- Parameters:
info- the image info objectbuffered- the BufferedImage instancetransparentColor- the transparent color or null
-
-
Method Details
-
getFlavor
Returns the flavor of the image.- Specified by:
getFlavorin interfaceImage- Overrides:
getFlavorin classImageRendered- Returns:
- the image flavor
-
getBufferedImage
Returns the contained BufferedImage instance.- Returns:
- the BufferedImage instance
-