public interface IImageLoaderDescriptor extends IImageDescriptor
The image loader descriptor specifying the loader properties. The loader descriptor is used to overcome the necessity to contain each image loader instance in memory and multithreading issues.
Modifier and Type | Method and Description |
---|---|
boolean |
canLoad(StreamContainer streamContainer,
LoadOptions loadOptions)
Determines whether image loader can read a new image from the specified stream and optionally using the
loadOptions . |
IImageLoader |
createInstance()
Creates a new loader instance.
|
getSupportedFormat
boolean canLoad(StreamContainer streamContainer, LoadOptions loadOptions)
Determines whether image loader can read a new image from the specified stream and optionally using the loadOptions
.
streamContainer
- The stream container.loadOptions
- The file format details specified by loadOptions
. The loadOptions
may be null.true
if image loader created by this descriptor can read image from stream; otherwise, false
.IImageLoader createInstance()
Creates a new loader instance.