#include <AGMImageAccessor.h>
The purpose of an AGMImageAccessor is simply to wrap an AGM Image such that 3rd parties can at least know the properties of the image without knowing specifics of the internals.
| virtual AGMImageAccessor::~AGMImageAccessor | ( | | ) | |
| virtual |
| virtual uint16 AGMImageAccessor::GetAGMColorFamily | ( | void | | ) | const |
| pure virtual |
Get the AGM color space family. Possible values include kAGMCsCMYK, kAGMCsRGB, kAGMCsGray, and kAGMCsLab.
GetAGMImageRecord() really should not be called any more as of InDesign 3.0. Calling this routine will cause the construction of an AGMImageRecord based on a CAGMImage.
| virtual const uint8* AGMImageAccessor::GetBaseAddr | ( | void | | ) | const |
| pure virtual |
Get a pointer to the pixel buffer. If the image is a virtual image, then nil will be returned.
| virtual uint16 AGMImageAccessor::GetBitsPerPixel | ( | void | | ) | const |
| pure virtual |
Get the number of bits per pixel
| virtual Int32Rect AGMImageAccessor::GetBounds | ( | void | | ) | const |
| pure virtual |
Get the bounds of the image
| virtual const CAGMImage& AGMImageAccessor::GetCAGMImage | ( | void | | ) | const |
| pure virtual |
GetCAGMImage will return the underlying CAGMImage.
| virtual uint32 AGMImageAccessor::GetColorMap | ( | uint8 ** | colors | ) | const |
| pure virtual |
If the image is colormapped, fill in the provided buffer with the colors in the map.
- Parameters
| colors | - IN/OUT - out return, will be filled with the colors in the map. |
- Returns
- the number of colors in the table
| virtual void AGMImageAccessor::GetDecodeArray | ( | const float ** | decodeArray | ) | const |
| pure virtual |
Fills in the provided decodeArray paramater with the values of the decode array if one exists.
- Parameters
| virtual uint32 AGMImageAccessor::GetPMColorFamily | ( | void | | ) | const |
| pure virtual |
Get the InDesign color space family. Possible values include kPMRGBColorSpace, kPMCMYKColorSpace, kPMGrayColorSpace, and kPMICCLabColorSpace.
| virtual uint16 AGMImageAccessor::GetRowBytes | ( | void | | ) | const |
| pure virtual |
Get the number of bytes per row.