public class ImageExportersRegistry extends Object
Represents the image exporters registry.
Constructor and Description |
---|
ImageExportersRegistry() |
Modifier and Type | Method and Description |
---|---|
static IImageExporter |
createFirstSupportedExporter(Image image,
ImageOptionsBase options)
Creates the first found exporter suitable for the specified save options and image.
|
static IImageExporterDescriptor |
getFirstSupportedDescriptor(Image image,
ImageOptionsBase options)
Gets the fist found supported descriptor suitable for the specified save options and image.
|
static IImageExporterDescriptor[] |
getRegisteredExporterDescriptors()
Gets the registered exporter descriptors.
|
static long |
getRegisteredFormats()
Gets the registered export formats.
|
static void |
register(IImageExporterDescriptor exporterDescriptor)
Registers the specified image exporter descriptor.
|
static void |
registerExporter(IImageExporterDescriptor exporterDescriptor)
Registers the exporter.
|
static void |
unregisterExporter(IImageExporterDescriptor exporterDescriptor)
Unregisters the exporter.
|
public static long getRegisteredFormats()
Gets the registered export formats.
Value: The registered export formats.public static IImageExporterDescriptor[] getRegisteredExporterDescriptors()
Gets the registered exporter descriptors.
Value: The registered exporter descriptors.public static void register(IImageExporterDescriptor exporterDescriptor)
Registers the specified image exporter descriptor.
exporterDescriptor
- The image exporter descriptor.public static IImageExporterDescriptor getFirstSupportedDescriptor(Image image, ImageOptionsBase options)
Gets the fist found supported descriptor suitable for the specified save options and image.
image
- The image to export.options
- The options.
The first exporter descriptor will be actually the last registered.
public static IImageExporter createFirstSupportedExporter(Image image, ImageOptionsBase options)
Creates the first found exporter suitable for the specified save options and image.
image
- The image to export.options
- The save options to use for export.
The first exporter will be actually the last registered.
public static void registerExporter(IImageExporterDescriptor exporterDescriptor)
Registers the exporter.
exporterDescriptor
- The exporter descriptor to register.public static void unregisterExporter(IImageExporterDescriptor exporterDescriptor)
Unregisters the exporter.
exporterDescriptor
- The exporter descriptor to unregister.