ImageExportersRegistry

Inheritance: java.lang.Object

public final class ImageExportersRegistry

Represents the image exporters registry.

Methods

MethodDescription
getRegisteredFormats()Gets the registered export formats.
getRegisteredExporterDescriptors()Gets the registered exporter descriptors.
register(IImageExporterDescriptor exporterDescriptor)Registers the specified image exporter descriptor.
getFirstSupportedDescriptor(Image image, ImageOptionsBase options)Gets the fist found supported descriptor suitable for the specified save options and image.
createFirstSupportedExporter(Image image, ImageOptionsBase options)Creates the first found exporter suitable for the specified save options and image.
registerExporter(IImageExporterDescriptor exporterDescriptor)Registers the exporter.
unregisterExporter(IImageExporterDescriptor exporterDescriptor)Unregisters the exporter.

getRegisteredFormats()

public static long getRegisteredFormats()

Gets the registered export formats.

Value: The registered export formats.

Returns: long

getRegisteredExporterDescriptors()

public static IImageExporterDescriptor[] getRegisteredExporterDescriptors()

Gets the registered exporter descriptors.

Value: The registered exporter descriptors.

Returns: com.aspose.imaging.IImageExporterDescriptor[]

register(IImageExporterDescriptor exporterDescriptor)

public static void register(IImageExporterDescriptor exporterDescriptor)

Registers the specified image exporter descriptor.

Parameters:

ParameterTypeDescription
exporterDescriptorIImageExporterDescriptorThe image exporter descriptor.

getFirstSupportedDescriptor(Image image, ImageOptionsBase options)

public static IImageExporterDescriptor getFirstSupportedDescriptor(Image image, ImageOptionsBase options)

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

Parameters:

ParameterTypeDescription
imageImageThe image to export.
optionsImageOptionsBaseThe options.

The first exporter descriptor will be actually the last registered. |

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

createFirstSupportedExporter(Image image, ImageOptionsBase options)

public static IImageExporter createFirstSupportedExporter(Image image, ImageOptionsBase options)

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

Parameters:

ParameterTypeDescription
imageImageThe image to export.
optionsImageOptionsBaseThe save options to use for export.

The first exporter will be actually the last registered. |

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

registerExporter(IImageExporterDescriptor exporterDescriptor)

public static void registerExporter(IImageExporterDescriptor exporterDescriptor)

Registers the exporter.

Parameters:

ParameterTypeDescription
exporterDescriptorIImageExporterDescriptorThe exporter descriptor to register.

unregisterExporter(IImageExporterDescriptor exporterDescriptor)

public static void unregisterExporter(IImageExporterDescriptor exporterDescriptor)

Unregisters the exporter.

Parameters:

ParameterTypeDescription
exporterDescriptorIImageExporterDescriptorThe exporter descriptor to unregister.