The base class describing an image. This class is subclassed to create a number of more specific image types. Instances of these objects may throw IEDLError exceptions on failure.
More...
|
virtual IImageDecoderPtr | createImageDecoder (IEDLClassFactory *factory, const IDOMImagePropertiesPtr &imageProperties)=0 |
| Creates a properly initialized image decoder object that reads from an inputstream that is specific to that image format.
|
|
virtual IImageFramePtr | getImageFrame (IEDLClassFactory *factory) |
| Fetch the image frame; convenience.
|
|
virtual IImageEncoderPtr | createImageEncoder (const ISessionPtr &session, const IOutputStreamPtr &imageDest, const IDOMImagePropertiesPtr &imageProperties)=0 |
| Creates a properly initialized image encoder object that writes to an outputstream that is specific to that image format.
|
|
virtual IDOMImagePropertiesPtr | getImageProperties ()=0 |
| Returns an object that stores the properties for this image object. The properties can then be inspected (or more added) by clients that need to manipulate the image resource.
|
|
virtual eDOMImageType | getImageType ()=0 |
| Retrieves the image type.
|
|
virtual bool | getIsRendered ()=0 |
| Determine if the image is as a result of rendering. This is indicated if the image type is eDITRendered or if the image explicitly notes this is the case (such as for IDOMPDFImage).
|
|
virtual IDOMImagePtr | getImageWithSubstitutedColorSpace (IEDLClassFactory *factory, const IDOMColorSpacePtr &colorSpace) |
| Obtain an image that is the same as this image, but with the colorspace substituted for another.
|
|
virtual IInputStreamPtr | getStream () const =0 |
| Retrieves the resource stream.
|
|
virtual void | setStream (const IInputStreamPtr &stream)=0 |
| Sets the resource stream for the node.
|
|
virtual uint64 | getStreamLength () const =0 |
| Retrieves the stream length, if it is available.
|
|
virtual const EDLSysString & | getUri () const =0 |
| Retrieves the resource URI.
|
|
virtual void | setUri (const EDLSysString &uri)=0 |
| Sets the resource URI.
|
|
virtual const CClassID & | getClassID () const =0 |
| Returns class ID of IEDLObject.
|
|
virtual bool | init (CClassParams *pData) |
| The init() method is called to perform any post-construction initialization of an IEDLObject that has been created by the EDL class factory, before it is actually returned by the factory.
|
|
virtual bool | clone (IEDLObjectPtr &ptrObject, IEDLClassFactory *pFactory) |
| Create a copy of EDLObject.
|
|
virtual void | addRef () const =0 |
| Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
|
|
virtual bool | decRef () const =0 |
| Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
|
|
virtual int32 | getRefCount () const =0 |
| Retrieve the current reference count of the actual object pointed to.
|
|
virtual | ~IDOMHashable () |
| Virtual destructor.
|
|
virtual bool | hash (uint64 &hash)=0 |
| Retrieve a hash for this object.
|
|
virtual uint64 | hashE () |
| As hash(), but throws an exception if the operation fails.
|
|
The base class describing an image. This class is subclassed to create a number of more specific image types. Instances of these objects may throw IEDLError exceptions on failure.
virtual IDOMImagePtr IDOMImage::getImageWithSubstitutedColorSpace |
( |
IEDLClassFactory * | factory, |
|
|
const IDOMColorSpacePtr & | colorSpace ) |
|
virtual |
Obtain an image that is the same as this image, but with the colorspace substituted for another.
While this can be achieved by overlaying an IDOMFilteredImage with IDOMImageColorSpaceSubstitutionFilter, for some image types this can be done in a simpler manner by overriding the existing color space. internally.
If the operation would make no changes, then the existing image is returned. Otherwise a modified clone will be made.
- Parameters
-
factory | Pointer to the EDL class factory |
colorSpace | The colorspace to substitute |
- Returns
- IDOMImagePtr The new image with substituted space, or the existing image if no changes were required.