Class ImageRendered
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.AbstractImage
org.apache.xmlgraphics.image.loader.impl.ImageRendered
- All Implemented Interfaces:
Image
- Direct Known Subclasses:
ImageBuffered
This class is an implementation of the Image interface exposing a RenderedImage.
-
Constructor Summary
ConstructorsConstructorDescriptionImageRendered
(ImageInfo info, RenderedImage red, Color transparentColor) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the image's color space if the information is available.Returns the flavor of the image.Returns the ICC color profile if one is associated with the image.Returns the contained RenderedImage instance.Returns the transparent color if available.boolean
Indicates whether the Image instance is cacheable in memory.Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImage
getInfo, getSize, toString
-
Constructor Details
-
ImageRendered
Main constructor.- Parameters:
info
- the image info objectred
- the RenderedImage instancetransparentColor
- the transparent color or null
-
-
Method Details
-
getFlavor
Returns the flavor of the image.- Returns:
- the image flavor
-
isCacheable
public boolean isCacheable()Indicates whether the Image instance is cacheable in memory.- Returns:
- true if the Image is cacheable
-
getRenderedImage
Returns the contained RenderedImage instance.- Returns:
- the RenderedImage instance
-
getColorSpace
Returns the image's color space if the information is available.- Specified by:
getColorSpace
in interfaceImage
- Overrides:
getColorSpace
in classAbstractImage
- Returns:
- the color space or null if the color space is unknown or undefined
-
getICCProfile
Returns the ICC color profile if one is associated with the image.- Specified by:
getICCProfile
in interfaceImage
- Overrides:
getICCProfile
in classAbstractImage
- Returns:
- the ICC color profile or null if there's no profile
-
getTransparentColor
Returns the transparent color if available.- Returns:
- the transparent color or null
-