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
public class ImageBuffered extends ImageRendered
This class is an implementation of the Image interface exposing a BufferedImage.
-
-
Constructor Summary
Constructors Constructor Description ImageBuffered(ImageInfo info, java.awt.image.BufferedImage buffered, java.awt.Color transparentColor)Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagegetBufferedImage()Returns the contained BufferedImage instance.ImageFlavorgetFlavor()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 Detail
-
ImageBuffered
public ImageBuffered(ImageInfo info, java.awt.image.BufferedImage buffered, java.awt.Color transparentColor)
Main constructor.- Parameters:
info- the image info objectbuffered- the BufferedImage instancetransparentColor- the transparent color or null
-
-
Method Detail
-
getFlavor
public ImageFlavor getFlavor()
Returns the flavor of the image.- Specified by:
getFlavorin interfaceImage- Overrides:
getFlavorin classImageRendered- Returns:
- the image flavor
-
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
Returns the contained BufferedImage instance.- Returns:
- the BufferedImage instance
-
-