IImageLoaderDescriptor Class

Summary: 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.

Module: aspose.imaging

Full Name: aspose.imaging.IImageLoaderDescriptor

Inheritance: IImageDescriptor

Properties

NameTypeAccessDescription
supported_formatFileFormatrGets the supported format.

Methods

NameDescription
can_load(stream_container, load_options)Determines whether image loader can read a new image from the specified stream and optionally using the loadOptions.
create_instance()Creates a new loader instance.

Method: can_load(stream_container, load_options)

 can_load(stream_container, load_options) 

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

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.
load_optionsLoadOptionsThe file format details specified by loadOptions. The loadOptions may be null.

Returns

TypeDescription
booltrue if image loader created by this descriptor can read image from stream; otherwise, false.

Method: create_instance()

 create_instance() 

Creates a new loader instance.

Returns

TypeDescription
IImageLoaderA new loader instance.