Class ImageExportersRegistry
Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)
Represents the image exporters registry.
public static class ImageExportersRegistry
Inheritance
object ← ImageExportersRegistry
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
RegisteredExporterDescriptors
Gets the registered exporter descriptors.
public static IImageExporterDescriptor[] RegisteredExporterDescriptors { get; }
Property Value
RegisteredFormats
Gets the registered export formats.
public static FileFormat RegisteredFormats { get; }
Property Value
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
Image
The image to export.
options
ImageOptionsBase
The save options to use for export.
Returns
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
Image
The image to export.
options
ImageOptionsBase
The options.
Returns
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
IImageExporterDescriptor
The image exporter descriptor.
RegisterExporter(IImageExporterDescriptor)
Registers the exporter.
public static void RegisterExporter(IImageExporterDescriptor exporterDescriptor)
Parameters
exporterDescriptor
IImageExporterDescriptor
The exporter descriptor to register.
UnregisterExporter(IImageExporterDescriptor)
Unregisters the exporter.
public static void UnregisterExporter(IImageExporterDescriptor exporterDescriptor)
Parameters
exporterDescriptor
IImageExporterDescriptor
The exporter descriptor to unregister.