Interface IImageExporterDescriptor

Interface IImageExporterDescriptor

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.7.0)

Represents the image exporter descriptor. The exporter descriptor is used to overcome the necessity to contain each exporter instancein memory and multithreading issues.

public interface IImageExporterDescriptor : IImageDescriptor
   {
      string OutputFormat { get; set; }
      string RootDirectory { get; set; }
      bool SaveAllImages { get; set; }
      bool OverwriteExistingFiles { get; set; }
   }

Implements

IImageDescriptor

Methods

CanExport(Image, ImageOptionsBase)

Determines whether image exporter can export the specified image to the specified image format specified by save options.

bool CanExport(Image image, ImageOptionsBase optionsBase)
{
}

Parameters

image Image

The image to export.

optionsBase ImageOptionsBase

The options base.

Returns

bool

‘True’ if exporter created by this descriptor can export the specified image to the specified file format; otherwise, ‘false’.

CreateInstance()

Creates a new exporter instance.

IImageExporter CreateInstance()
   {
      return new ImageExporter();
   }

Returns

IImageExporter

A new exporter instance.

 English