public interface ImageSessionContext
Modifier and Type | Method and Description |
---|---|
ImageContext |
getParentContext()
Returns the session-independent context object which provides configuration information.
|
Source |
getSource(String uri)
Returns a Source object for a URI.
|
float |
getTargetResolution()
Returns the resolution (in dpi) of the target device used when painting images.
|
Source |
needSource(String uri)
Returns a Source object for a URI.
|
Source |
newSource(String uri)
Attempts to create a Source object from the given URI.
|
void |
returnSource(String uri,
Source src)
Returns a Source object to a pool.
|
ImageContext getParentContext()
float getTargetResolution()
Source newSource(String uri)
uri
- URI to accessSource
object, or null if the URI
cannot be resolved.Source getSource(String uri)
returnSource(String, Source)
method).uri
- the URI of the imageSource needSource(String uri) throws FileNotFoundException
FileNotFoundException
is thrown.uri
- the URI of the imageFileNotFoundException
- if the image cannot be foundvoid returnSource(String uri, Source src)
uri
- the URI of the imagesrc
- the Source object belonging to the URICopyright © 2017 Apache Software Foundation. All rights reserved.