Class ImageLoadersRegistry

Class ImageLoadersRegistry

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)

Represents the image loaders registry.

public static class ImageLoadersRegistry

Inheritance

objectImageLoadersRegistry

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 IImageLoaderDescriptor[] RegisteredDescriptors { get; }

Property Value

IImageLoaderDescriptor[]

RegisteredFormats

Gets the registered image loading formats.

public static FileFormat RegisteredFormats { get; }

Property Value

FileFormat

Methods

CreateFirstSupportedLoader(Stream, LoadOptions)

Creates the first found loader suitable for the specified stream and optionally the loadOptions.

public static IImageLoader CreateFirstSupportedLoader(Stream stream, LoadOptions loadOptions)

Parameters

stream Stream

The stream.

loadOptions LoadOptions

The load options.

Returns

IImageLoader

The loader which supports the specified stream and loadOptions or null if no such loader is found.

Remarks

The first loader will be actually the last registered.

GetFirstSupportedDescriptor(Stream, LoadOptions)

Gets the fist found supported descriptor suitable for the specified stream and optionally the loadOptions.

public static IImageLoaderDescriptor GetFirstSupportedDescriptor(Stream stream, LoadOptions loadOptions)

Parameters

stream Stream

The stream.

loadOptions LoadOptions

The load options.

Returns

IImageLoaderDescriptor

The loader descriptor which supports the specified stream and loadOptions or null if no such descriptor is found.

Remarks

The first loader descriptor will be actually the last registered.

GetFirstSupportedDescriptorByFileFormat(FileFormat)

Gets the first supported file format by its type name.

public static IImageLoaderDescriptor GetFirstSupportedDescriptorByFileFormat(FileFormat fileFormat)

Parameters

fileFormat FileFormat

The supported descriptor file format.

Returns

IImageLoaderDescriptor

The first found loader descriptor or null if not such descriptor is found.

Remarks

The first loader descriptor will be actually the last registered.

GetFirstSupportedDescriptorByTypeName(string)

Gets the first supported descriptor by its type name.

public static IImageLoaderDescriptor GetFirstSupportedDescriptorByTypeName(string descriptorTypeName)

Parameters

descriptorTypeName string

The descriptor type name.

Returns

IImageLoaderDescriptor

The first found loader descriptor or null if not such descriptor is found.

Remarks

The first loader descriptor will be actually the last registered.

Register(IImageLoaderDescriptor)

Registers the specified image loader descriptor.

public static void Register(IImageLoaderDescriptor imageLoaderDescriptor)

Parameters

imageLoaderDescriptor IImageLoaderDescriptor

The image loader descriptor.

RegisterLoader(IImageLoaderDescriptor)

Registers the loader.

public static void RegisterLoader(IImageLoaderDescriptor loaderDescriptor)

Parameters

loaderDescriptor IImageLoaderDescriptor

The loader descriptor to register.

UnregisterLoader(IImageLoaderDescriptor)

Unregisters the loader.

public static void UnregisterLoader(IImageLoaderDescriptor loaderDescriptor)

Parameters

loaderDescriptor IImageLoaderDescriptor

The loader descriptor to unregister.