AbstractImagePreloader
, PreloaderBMP
, PreloaderEMF
, PreloaderEPS
, PreloaderGIF
, PreloaderImageIO
, PreloaderJPEG
, PreloaderRawPNG
, PreloaderTIFF
public interface ImagePreloader
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_PRIORITY |
Default priority for preloaders
|
Modifier and Type | Method | Description |
---|---|---|
int |
getPriority() |
Returns the priority of the preloader.
|
ImageInfo |
preloadImage(String originalURI,
Source src,
ImageContext context) |
"Preloads" an image, i.e.
|
static final int DEFAULT_PRIORITY
ImageInfo preloadImage(String originalURI, Source src, ImageContext context) throws ImageException, IOException
ImageException
is only
thrown if the image is identified but some error has happened while working on the file.originalURI
- the original (unresolved) URI of the imagesrc
- a image source the image is loaded fromcontext
- the context object that provides configuration informationImageException
- if an error occurs while preloading the imageIOException
- if an I/O error occurs while preloading the imageint getPriority()
Copyright © 2018 Apache Software Foundation. All rights reserved.