Class GifBlocksRegistry
Namespace: Aspose.Imaging.FileFormats.Gif
Assembly: Aspose.Imaging.dll (25.8.0)
Represents the gif blocks openers registry.
public static class GifBlocksRegistryInheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
RegisteredDescriptors
Gets the registered descriptors.
public static IGifBlockLoaderDescriptor[] RegisteredDescriptors { get; }Property Value
Methods
GetFirstSupportedDescriptor(Stream)
Gets the first supported opener descriptor.
public static IGifBlockLoaderDescriptor GetFirstSupportedDescriptor(Stream stream)Parameters
stream Stream
The stream.
Returns
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 string
The descriptor type name.
Returns
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 Stream
The stream.
containerPalette IColorPalette
The container palette.
Returns
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 IGifBlockLoaderDescriptor
The opener descriptor to register.
UnregisterOpener(IGifBlockLoaderDescriptor)
Unregisters the opener.
public static void UnregisterOpener(IGifBlockLoaderDescriptor openerDescriptor)Parameters
openerDescriptor IGifBlockLoaderDescriptor
The opener descriptor to unregister.