ImageLoader
CompositeImageLoader
, ImageLoaderEPS
, ImageLoaderImageIO
, ImageLoaderInternalTIFF
, ImageLoaderPNG
, ImageLoaderRaw
, ImageLoaderRawCCITTFax
, ImageLoaderRawJPEG
, ImageLoaderRawPNG
public abstract class AbstractImageLoader extends java.lang.Object implements ImageLoader
MEDIUM_LOADING_PENALTY, NO_LOADING_PENALTY
Constructor | Description |
---|---|
AbstractImageLoader() |
Modifier and Type | Method | Description |
---|---|---|
int |
getUsagePenalty() |
Returns the penalty assigned to using this image loader.
|
protected boolean |
ignoreColorProfile(java.util.Map hints) |
Indicates whether an embedded color profile should be ignored.
|
Image |
loadImage(ImageInfo info,
ImageSessionContext session) |
Loads and returns an image.
|
getTargetFlavor, loadImage
public Image loadImage(ImageInfo info, ImageSessionContext session) throws ImageException, java.io.IOException
loadImage
in interface ImageLoader
info
- the image info object indicating the imagesession
- the session contextImageException
- if an error occurs while loading the imagejava.io.IOException
- if an I/O error occurs while loading the imagepublic int getUsagePenalty()
getUsagePenalty
in interface ImageLoader
protected boolean ignoreColorProfile(java.util.Map hints)
hints
- a Map of hints that can be used by implementations to customize the loading
process (may be null).Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.