ImageLoadersRegistry Class
Contents
[
Hide
]Summary: Represents the image loaders registry.
Module: aspose.imaging
Full Name: aspose.imaging.ImageLoadersRegistry
Properties
Name | Type | Access | Description |
---|---|---|---|
registered_descriptors [static] | IImageLoaderDescriptor[] | r | Gets the registered descriptors. |
registered_formats [static] | FileFormat | r | Gets the registered image loading formats. |
Methods
Name | Description |
---|---|
create_first_supported_loader(stream, load_options) | Creates the first found loader suitable for the specified stream and optionally the loadOptions. |
get_first_supported_descriptor(stream, load_options) | Gets the fist found supported descriptor suitable for the specified stream and optionally the loadOptions. |
get_first_supported_descriptor_by_file_format(file_format) | Gets the first supported file format by its type name. |
get_first_supported_descriptor_by_type_name(descriptor_type_name) | Gets the first supported descriptor by its type name. |
register(image_loader_descriptor) | Registers the specified image loader descriptor. |
register_loader(loader_descriptor) | Registers the loader. |
unregister_loader(loader_descriptor) | Unregisters the loader. |
Method: create_first_supported_loader(stream, load_options) [static]
create_first_supported_loader(stream, load_options)
Creates the first found loader suitable for the specified stream and optionally the loadOptions.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | _io.BufferedRandom | The stream. |
load_options | LoadOptions | The load options. |
Returns
Type | Description |
---|---|
IImageLoader | The loader which supports the specified stream and loadOptions or null if no such loader is found. |
Method: get_first_supported_descriptor(stream, load_options) [static]
get_first_supported_descriptor(stream, load_options)
Gets the fist found supported descriptor suitable for the specified stream and optionally the loadOptions.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | _io.BufferedRandom | The stream. |
load_options | LoadOptions | The load options. |
Returns
Type | Description |
---|---|
IImageLoaderDescriptor | The loader descriptor which supports the specified stream and loadOptions or null if no such descriptor is found. |
Method: get_first_supported_descriptor_by_file_format(file_format) [static]
get_first_supported_descriptor_by_file_format(file_format)
Gets the first supported file format by its type name.
Parameters:
Parameter | Type | Description |
---|---|---|
file_format | FileFormat | The supported descriptor file format. |
Returns
Type | Description |
---|---|
IImageLoaderDescriptor | The first found loader descriptor or null if not such descriptor is found. |
Method: get_first_supported_descriptor_by_type_name(descriptor_type_name) [static]
get_first_supported_descriptor_by_type_name(descriptor_type_name)
Gets the first supported descriptor by its type name.
Parameters:
Parameter | Type | Description |
---|---|---|
descriptor_type_name | string | The descriptor type name. |
Returns
Type | Description |
---|---|
IImageLoaderDescriptor | The first found loader descriptor or null if not such descriptor is found. |
Method: register(image_loader_descriptor) [static]
register(image_loader_descriptor)
Registers the specified image loader descriptor.
Parameters:
Parameter | Type | Description |
---|---|---|
image_loader_descriptor | IImageLoaderDescriptor | The image loader descriptor. |
Method: register_loader(loader_descriptor) [static]
register_loader(loader_descriptor)
Registers the loader.
Parameters:
Parameter | Type | Description |
---|---|---|
loader_descriptor | IImageLoaderDescriptor | The loader descriptor to register. |
Method: unregister_loader(loader_descriptor) [static]
unregister_loader(loader_descriptor)
Unregisters the loader.
Parameters:
Parameter | Type | Description |
---|---|---|
loader_descriptor | IImageLoaderDescriptor | The loader descriptor to unregister. |