Class GifBlocksRegistry
- Namespace
- Aspose.Imaging.FileFormats.Gif
- Assembly
- Aspose.Imaging.dll
Represents the gif blocks openers registry.
public static class GifBlocksRegistry
- Inheritance
-
GifBlocksRegistry
- Inherited Members
Properties
RegisteredDescriptors
Gets the registered descriptors.
public static IGifBlockLoaderDescriptor[] RegisteredDescriptors { get; }
Property Value
- IGifBlockLoaderDescriptor[]
The registered descriptors.
Methods
GetFirstSupportedDescriptor(Stream)
Gets the first supported opener descriptor.
public static IGifBlockLoaderDescriptor GetFirstSupportedDescriptor(Stream stream)
Parameters
stream
StreamThe stream.
Returns
- IGifBlockLoaderDescriptor
The gif block opener descriptor or null if no opener descriptor supported for such stream.
Remarks
The first opener will be actually the last registered.
GetFirstSupportedDescriptorByTypeName(string)
Gets the first supported descriptor by its type name.
public static IGifBlockLoaderDescriptor GetFirstSupportedDescriptorByTypeName(string descriptorTypeName)
Parameters
descriptorTypeName
stringThe descriptor type name.
Returns
- IGifBlockLoaderDescriptor
The first found opener descriptor or null if not such descriptor is found.
Remarks
The first opener descriptor will be actually the last registered.
LoadBlockByFirstSupportedDescriptor(Stream, IColorPalette)
Loads gif block using first found opener suitable for the specified stream
.
public static IGifBlock LoadBlockByFirstSupportedDescriptor(Stream stream, IColorPalette containerPalette)
Parameters
stream
StreamThe stream.
containerPalette
IColorPaletteThe container palette.
Returns
- IGifBlock
The loaded gif block or null if no opener is found.
Remarks
The first opener will be actually the last registered.
RegisterOpener(IGifBlockLoaderDescriptor)
Registers the opener.
public static void RegisterOpener(IGifBlockLoaderDescriptor openerDescriptor)
Parameters
openerDescriptor
IGifBlockLoaderDescriptorThe opener descriptor to register.
UnregisterOpener(IGifBlockLoaderDescriptor)
Unregisters the opener.
public static void UnregisterOpener(IGifBlockLoaderDescriptor openerDescriptor)
Parameters
openerDescriptor
IGifBlockLoaderDescriptorThe opener descriptor to unregister.