IImageExporterDescriptor

All Implemented Interfaces: com.aspose.imaging.IImageDescriptor

public interface IImageExporterDescriptor extends IImageDescriptor

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

Methods

MethodDescription
canExport(Image image, ImageOptionsBase optionsBase)Determines whether image exporter can export the specified image to the specified image format specified by save options.
createInstance()Creates a new exporter instance.

canExport(Image image, ImageOptionsBase optionsBase)

public abstract boolean canExport(Image image, ImageOptionsBase optionsBase)

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

Parameters:

ParameterTypeDescription
imageImageThe image to export.
optionsBaseImageOptionsBaseThe options base.

Returns: boolean - true if exporter created by this descriptor can export the specified image to the specified file format; otherwise, false.

createInstance()

public abstract IImageExporter createInstance()

Creates a new exporter instance.

Returns: IImageExporter - A new exporter instance.