IImageLoaderDescriptor

All Implemented Interfaces: com.aspose.psd.IImageDescriptor

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.

Methods

MethodDescription
canLoad(StreamContainer streamContainer, LoadOptions loadOptions)Determines whether image loader can read a new image from the specified stream and optionally using the loadOptions .
createInstance()Creates a new loader instance.

canLoad(StreamContainer streamContainer, LoadOptions loadOptions)

public abstract boolean canLoad(StreamContainer streamContainer, LoadOptions loadOptions)

Determines whether image loader can read a new image from the specified stream and optionally using the loadOptions .

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
loadOptionsLoadOptionsThe file format details specified by loadOptions . The loadOptions may be null.

Returns: boolean - true if image loader created by this descriptor can read image from stream; otherwise, false .

createInstance()

public abstract IImageLoader createInstance()

Creates a new loader instance.

Returns: IImageLoader - A new loader instance.