GifBlocksRegistry Class

Summary: Represents the gif blocks openers registry.

Module: aspose.imaging.fileformats.gif

Full Name: aspose.imaging.fileformats.gif.GifBlocksRegistry

Properties

NameTypeAccessDescription
registered_descriptors [static]IGifBlockLoaderDescriptor[]rGets the registered descriptors.

Methods

NameDescription
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:

ParameterTypeDescription
stream_io.BufferedRandomThe stream.

Returns

TypeDescription
IGifBlockLoaderDescriptorThe 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:

ParameterTypeDescription
descriptor_type_namestringThe descriptor type name.

Returns

TypeDescription
IGifBlockLoaderDescriptorThe 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:

ParameterTypeDescription
stream_io.BufferedRandomThe stream.
container_paletteIColorPaletteThe container palette.

Returns

TypeDescription
IGifBlockThe loaded gif block or null if no opener is found.

Method: register_opener(opener_descriptor) [static]

 register_opener(opener_descriptor) 

Registers the opener.

Parameters:

ParameterTypeDescription
opener_descriptorIGifBlockLoaderDescriptorThe opener descriptor to register.

Method: unregister_opener(opener_descriptor) [static]

 unregister_opener(opener_descriptor) 

Unregisters the opener.

Parameters:

ParameterTypeDescription
opener_descriptorIGifBlockLoaderDescriptorThe opener descriptor to unregister.