OEImageFileCreatorBase

class OEImageFileCreatorBase

The OEImageFileCreatorBase is an abstract class that is used to register concrete image types.

See also

Constructors

OEImageFileCreatorBase(const std::string &ext, bool multi=false)

Default constructor.

ext
The file extension that will be used to identify the concrete image type. For example, the Portable Document Format (PDF) is registered with the “pdf” file extension.
multi
Determines whether the specific image type can be used to create multi-page images.

CreateCopy

OEImageFileCreatorBase *CreateCopy() const =0

Virtual const constructor which allows copying of concrete derived objects using a reference to this base class.

CreateImage

OEImageFileBase *CreateImage(double width, double height) const =0

The OEImageFileCreatorBase.CreateImage is a virtual method that has to be implemented in the concrete derived classes and it returns a pointer of concrete image with the given dimensions.

width
The width of the returned image.
height
The height of the returned image.

GetExtension

const std::string GetExtension() const

Return the file extension of which the concrete image type is being registered.

IsMultiPage

bool IsMultiPage() const

Returns whether the image type registered as multi-page image.