GifBlocksRegistry Class
Contents
[
Hide
]Summary: Represents the gif blocks openers registry.
Module: aspose.imaging.fileformats.gif
Full Name: aspose.imaging.fileformats.gif.GifBlocksRegistry
Properties
Name | Type | Access | Description |
---|---|---|---|
registered_descriptors [static] | IGifBlockLoaderDescriptor[] | r | Gets the registered descriptors. |
Methods
Name | Description |
---|---|
get_first_supported_descriptor(stream) | Gets the first supported opener descriptor. |
get_first_supported_descriptor_by_type_name(descriptor_type_name) | Gets the first supported descriptor by its type name. |
load_block_by_first_supported_descriptor(stream, container_palette) | Loads gif block using first found opener suitable for the specified stream. |
register_opener(opener_descriptor) | Registers the opener. |
unregister_opener(opener_descriptor) | Unregisters the opener. |
Method: get_first_supported_descriptor(stream) [static]
get_first_supported_descriptor(stream)
Gets the first supported opener descriptor.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | _io.BufferedRandom | The stream. |
Returns
Type | Description |
---|---|
IGifBlockLoaderDescriptor | The gif block opener descriptor or null if no opener descriptor supported for such stream. |
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 |
---|---|
IGifBlockLoaderDescriptor | The first found opener descriptor or null if not such descriptor is found. |
Method: load_block_by_first_supported_descriptor(stream, container_palette) [static]
load_block_by_first_supported_descriptor(stream, container_palette)
Loads gif block using first found opener suitable for the specified stream.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | _io.BufferedRandom | The stream. |
container_palette | IColorPalette | The container palette. |
Returns
Type | Description |
---|---|
IGifBlock | The loaded gif block or null if no opener is found. |
Method: register_opener(opener_descriptor) [static]
register_opener(opener_descriptor)
Registers the opener.
Parameters:
Parameter | Type | Description |
---|---|---|
opener_descriptor | IGifBlockLoaderDescriptor | The opener descriptor to register. |
Method: unregister_opener(opener_descriptor) [static]
unregister_opener(opener_descriptor)
Unregisters the opener.
Parameters:
Parameter | Type | Description |
---|---|---|
opener_descriptor | IGifBlockLoaderDescriptor | The opener descriptor to unregister. |