Class ImageLoadersRegistry
Represents the image loaders registry.
public static class ImageLoadersRegistry
- Inheritance
-
ImageLoadersRegistry
- Inherited Members
Properties
RegisteredDescriptors
Gets the registered descriptors.
public static IImageLoaderDescriptor[] RegisteredDescriptors { get; }
Property Value
- IImageLoaderDescriptor[]
The registered descriptors.
RegisteredFormats
Gets the registered image loading formats.
public static FileFormat RegisteredFormats { get; }
Property Value
- FileFormat
The registered image loading formats.
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
StreamThe stream.
loadOptions
LoadOptionsThe load options.
Returns
- IImageLoader
The loader which supports the specified
stream
andloadOptions
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
StreamThe stream.
loadOptions
LoadOptionsThe load options.
Returns
- IImageLoaderDescriptor
The loader descriptor which supports the specified
stream
andloadOptions
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
FileFormatThe 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
stringThe 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
IImageLoaderDescriptorThe image loader descriptor.
RegisterLoader(IImageLoaderDescriptor)
Registers the loader.
public static void RegisterLoader(IImageLoaderDescriptor loaderDescriptor)
Parameters
loaderDescriptor
IImageLoaderDescriptorThe loader descriptor to register.
UnregisterLoader(IImageLoaderDescriptor)
Unregisters the loader.
public static void UnregisterLoader(IImageLoaderDescriptor loaderDescriptor)
Parameters
loaderDescriptor
IImageLoaderDescriptorThe loader descriptor to unregister.