![]() | InDesign SDK 20.5 |
#include <IImageCache.h>

Public Member Functions | |
| virtual void | Init (AGMImageAccessor *image, uint32 resolution, uint32 ticksToGenerate, uint32 profileChecksum=0L, const PMMatrix &adjustmentMatrix=PMMatrix())=0 |
| virtual uint32 | GetResolution (void) const =0 |
| virtual uint32 | GetSize (void) const =0 |
| virtual uint32 | GetGenerateTime (void) const =0 |
| virtual uint32 | GetLastDrawTime (void) const =0 |
| virtual uint32 | GetDrawCount (void) const =0 |
| virtual uint32 | GetColorFamily (void) const =0 |
| virtual uint32 | GetProfileChecksum (void) const =0 |
| virtual const PMMatrix & | GetAdjustmentMatrix (void) const =0 |
| virtual AGMImageAccessor * | GetImageAccessor (void) const =0 |
| virtual void | Draw (const GraphicsData *gd, IGeometry *imageGeometry, const PMMatrix &additionalXform=PMMatrix(), const AGMColorSpace *colorSpace=nil, const PMReal &tint=kDefaultTintPercent)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IImageCache This class contains an AGM Image plus additional information and metrics used by the ImageCacheManager to determine which IImageCache's should be serialized/virtualized to disk in low memory situations.
| pure virtual |
Draw the cache
| gd | - IN: Pointer to information about the destination device. |
| imageGeometry | - IN: Pointer to the IGeometry of the image's corresponding page item. |
| additionalXform | - IN: If there are additional transforms you want applied to the image while drawing, pass them here. |
| colorSpace | - IN: Used when applying a color to a grayscale image. |
| tint | - IN: Used when applying a color to a grayscale image. |
| pure virtual |
Returns the adjustment matrix as specified through Init.
| pure virtual |
Returns one of kPMGrayColorSpace, kPMRGBColorSpace, kPMCMYKColorSpace, kPMICCLabColorSpace
| pure virtual |
Returns the number of times Draw() has been drawn
| pure virtual |
Returns number of ticks needed to generate the cache as specified in the Init method
| pure virtual |
Returns the image record - care should be taken not to delete any fields
| pure virtual |
Returns the time (in ticks) of the last time this cache was drawn
| pure virtual |
Returns the Checksum of the source profile for this image as specified in the Init method.
| pure virtual |
Returns resolution of the image in the cache as specified in the Init method.
| pure virtual |
Returns size of the image in the cache where the size is defined as the rowbytes * height + the number of colors in the color map (if one exists).
| pure virtual |
Initialize the ImageCache - image will be owned by the ImageCache and should not be deleted by the client. Image should be a heap ptr and not a stack ptr (i.e., don't pass in the address of a local stack based AGMImageAccessor variable).
| image | - IN: Ptr to a valid non-stack based AGMImageAccessor |
| resolution | - IN: Image resolution. Used as a key by the ImageCacheManager. |
| ticksToGenerate | - IN: A tick is 1/60th of a second. This metric is used by the ImageCacheManager to determine the cost of generating this cache from scratch. |
| profileChecksum | - IN: A checksum of the color profile for the image. This value is used as a key by the ImageCacheManager and is useful if two caches with the same resolution exist for the same page item. |
| adjustmentMatrix | - IN: The adjustment needed to align the image. Used when the image itself doesn't represent all the info needed for this purpose (e.g., transparency effect masks, which require additional translation information). Not used by the image cache manager since it does not change the uniqueness of the cache entry. |