Class ImageExportersRegistry
Represents the image exporters registry.
public static class ImageExportersRegistry
- Inheritance
-
ImageExportersRegistry
- Inherited Members
Properties
RegisteredExporterDescriptors
Gets the registered exporter descriptors.
public static IImageExporterDescriptor[] RegisteredExporterDescriptors { get; }
Property Value
- IImageExporterDescriptor[]
The registered exporter descriptors.
RegisteredFormats
Gets the registered export formats.
public static FileFormat RegisteredFormats { get; }
Property Value
- FileFormat
The registered export formats.
Methods
CreateFirstSupportedExporter(Image, ImageOptionsBase)
Creates the first found exporter suitable for the specified save options and image.
public static IImageExporter CreateFirstSupportedExporter(Image image, ImageOptionsBase options)
Parameters
image
ImageThe image to export.
options
ImageOptionsBaseThe save options to use for export.
Returns
- IImageExporter
The exporter which supports the specified image and save options or null if no such exporter is found.
Remarks
The first exporter will be actually the last registered.
GetFirstSupportedDescriptor(Image, ImageOptionsBase)
Gets the fist found supported descriptor suitable for the specified save options and image.
public static IImageExporterDescriptor GetFirstSupportedDescriptor(Image image, ImageOptionsBase options)
Parameters
image
ImageThe image to export.
options
ImageOptionsBaseThe options.
Returns
- IImageExporterDescriptor
The exporter descriptor which supports the specified image and save options or null if no such descriptor is found.
Remarks
The first exporter descriptor will be actually the last registered.
Register(IImageExporterDescriptor)
Registers the specified image exporter descriptor.
public static void Register(IImageExporterDescriptor imageExporterDescriptor)
Parameters
imageExporterDescriptor
IImageExporterDescriptorThe image exporter descriptor.
RegisterExporter(IImageExporterDescriptor)
Registers the exporter.
public static void RegisterExporter(IImageExporterDescriptor exporterDescriptor)
Parameters
exporterDescriptor
IImageExporterDescriptorThe exporter descriptor to register.
UnregisterExporter(IImageExporterDescriptor)
Unregisters the exporter.
public static void UnregisterExporter(IImageExporterDescriptor exporterDescriptor)
Parameters
exporterDescriptor
IImageExporterDescriptorThe exporter descriptor to unregister.