ImageCreatorsRegistry

Inheritance: java.lang.Object

public final class ImageCreatorsRegistry

Represents the image creators registry.

Methods

MethodDescription
getRegisteredFormats()Gets the registered image creation formats.
getRegisteredDescriptors()Gets the registered descriptors.
register(IImageCreatorDescriptor creatorDescriptor)Registers the specified image creator descriptor.
getFirstSupportedDescriptor(ImageOptionsBase imageOptions)Gets the fist found supported descriptor suitable for the specified.
createFirstSupportedCreator(ImageOptionsBase imageOptions)Creates the first found creator suitable for the specified.
registerCreator(IImageCreatorDescriptor creatorDescriptor)Registers the creator.
unregisterCreator(IImageCreatorDescriptor creatorDescriptor)Unregisters the creator.

getRegisteredFormats()

public static long getRegisteredFormats()

Gets the registered image creation formats.

Value: The registered image creation formats.

Returns: long

getRegisteredDescriptors()

public static IImageCreatorDescriptor[] getRegisteredDescriptors()

Gets the registered descriptors.

Value: The registered descriptors.

Returns: com.aspose.imaging.IImageCreatorDescriptor[]

register(IImageCreatorDescriptor creatorDescriptor)

public static void register(IImageCreatorDescriptor creatorDescriptor)

Registers the specified image creator descriptor.

Parameters:

ParameterTypeDescription
creatorDescriptorIImageCreatorDescriptorThe image creator descriptor.

getFirstSupportedDescriptor(ImageOptionsBase imageOptions)

public static IImageCreatorDescriptor getFirstSupportedDescriptor(ImageOptionsBase imageOptions)

Gets the fist found supported descriptor suitable for the specified.

Parameters:

ParameterTypeDescription
imageOptionsImageOptionsBaseThe image options.

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

Returns: IImageCreatorDescriptor - The creator descriptor which supports the specified or null if no such descriptor is found.

createFirstSupportedCreator(ImageOptionsBase imageOptions)

public static IImageCreator createFirstSupportedCreator(ImageOptionsBase imageOptions)

Creates the first found creator suitable for the specified.

Parameters:

ParameterTypeDescription
imageOptionsImageOptionsBaseThe image options.

The first creator will be actually the last registered. |

Returns: IImageCreator - The creator which supports the specified or null if no such creator is found.

registerCreator(IImageCreatorDescriptor creatorDescriptor)

public static void registerCreator(IImageCreatorDescriptor creatorDescriptor)

Registers the creator.

Parameters:

ParameterTypeDescription
creatorDescriptorIImageCreatorDescriptorThe creator descriptor to register.

unregisterCreator(IImageCreatorDescriptor creatorDescriptor)

public static void unregisterCreator(IImageCreatorDescriptor creatorDescriptor)

Unregisters the creator.

Parameters:

ParameterTypeDescription
creatorDescriptorIImageCreatorDescriptorThe creator descriptor.