com.aspose.imaging
Class ImageExportersRegistry

java.lang.Object
  extended by com.aspose.imaging.ImageExportersRegistry

public class ImageExportersRegistry
extends java.lang.Object

Represents the image exporters registry.


Constructor Summary
ImageExportersRegistry()
           
 
Method Summary
static IImageExporter createFirstSupportedExporter(Image image, SaveOptionsBase saveOptions)
           Creates the first found exporter suitable for the specified save options and image.
static IImageExporterDescriptor getFirstSupportedDescriptor(Image image, SaveOptionsBase saveOptions)
           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 registerExporter(IImageExporterDescriptor exporterDescriptor)
           Registers the exporter.
static void unregisterExporter(IImageExporterDescriptor exporterDescriptor)
           Unregisters the exporter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageExportersRegistry

public ImageExportersRegistry()
Method Detail

createFirstSupportedExporter

public static IImageExporter createFirstSupportedExporter(Image image,
                                                          SaveOptionsBase saveOptions)

Creates the first found exporter suitable for the specified save options and image.

Parameters:
image - The image to export.
saveOptions - The save options to use for export.


The first exporter will be actually the last registered.

Returns:
The exporter which supports the specified image and save options or null if no such exporter is found.

getFirstSupportedDescriptor

public static IImageExporterDescriptor getFirstSupportedDescriptor(Image image,
                                                                   SaveOptionsBase saveOptions)

Gets the fist found supported descriptor suitable for the specified save options and image.

Parameters:
image - The image to export.
saveOptions - The save options to use for export.


The first exporter descriptor will be actually the last registered.

Returns:
The exporter descriptor which supports the specified image and save options or null if no such descriptor is found.

getRegisteredExporterDescriptors

public static IImageExporterDescriptor[] getRegisteredExporterDescriptors()

Gets the registered exporter descriptors.

Value: The registered exporter descriptors.


getRegisteredFormats

public static long getRegisteredFormats()

Gets the registered export formats.

Value: The registered export formats.


registerExporter

public static void registerExporter(IImageExporterDescriptor exporterDescriptor)

Registers the exporter.

Parameters:
exporterDescriptor - The exporter descriptor to register.

unregisterExporter

public static void unregisterExporter(IImageExporterDescriptor exporterDescriptor)

Unregisters the exporter.

Parameters:
exporterDescriptor - The exporter descriptor to unregister.