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 org.apache.xmlgraphics.image.loader.impl.ImageRendered
getColorSpace, getICCProfile, getRenderedImage, getTransparentColor, isCacheable
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.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:
getFlavor
in interfaceImage
- Overrides:
getFlavor
in classImageRendered
- Returns:
- the image flavor
-
getBufferedImage
Returns the contained BufferedImage instance.- Returns:
- the BufferedImage instance
-