org.apache.xmlgraphics.image.loader.impl
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.
ImageBuffered
public ImageBuffered(ImageInfo info,
BufferedImage buffered,
Color transparentColor)
- Main constructor.
- Parameters:
info
- the image info objectbuffered
- the BufferedImage instancetransparentColor
- the transparent color or null
getFlavor
public ImageFlavor getFlavor()
- Returns the flavor of the image.
- Specified by:
getFlavor
in interface Image
- Overrides:
getFlavor
in class ImageRendered
- Returns:
- the image flavor
getBufferedImage
public BufferedImage getBufferedImage()
- Returns the contained BufferedImage instance.
- Returns:
- the BufferedImage instance
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.