IImageLoaderDescriptor 类

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

Methods

Name描述
can_load(stream_container, load_options)确定图像加载器是否可以从指定的流读取新图像,并可选地使用 loadOptions
create_instance()创建一个新的加载器实例。

Method: can_load(stream_container, load_options)

 can_load(stream_container, load_options) 

确定图像加载器是否可以从指定的流读取新图像,并可选地使用 loadOptions

Parameters:

参数TypeDescription
stream_containerStreamContainer流容器。
load_optionsLoadOptionsloadOptions 指定的文件格式详细信息。loadOptions 可能为 null。

Returns

TypeDescription
booltrue 如果由此描述符创建的图像加载器可以从流读取图像;否则,false

Method: create_instance()

 create_instance() 

创建一个新的加载器实例。

Returns

TypeDescription
IImageLoader一个新的加载器实例。