Packages

 

com.aspose.cad

Class ImageExportersRegistry



  • public class ImageExportersRegistry
    extends Object

    Represents the image exporters registry.

    • Method Detail

      • getRegisteredFormats

        public static long getRegisteredFormats()

        Gets the registered export formats.

        Value: The registered export formats.
      • getRegisteredExporterDescriptors

        public static IImageExporterDescriptor[] getRegisteredExporterDescriptors()

        Gets the registered exporter descriptors.

        Value: The registered exporter descriptors.
      • getFirstSupportedDescriptor

        public static IImageExporterDescriptor getFirstSupportedDescriptor(Image image,
                                                                           ImageOptionsBase options)

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

        Parameters:
        image - The image to export.
        options - The options.

        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.
      • createFirstSupportedExporter

        public static IImageExporter createFirstSupportedExporter(Image image,
                                                                  ImageOptionsBase options)

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

        Parameters:
        image - The image to export.
        options - 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.
      • 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.