InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImageItem Class Referenceabstract

#include <IImageItem.h>

Inheritance diagram for IImageItem:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IIMAGEITEM }
 

Public Member Functions

virtual bool32 HasProfile (void) const =0
 
virtual uchar * GetProfileData (const UIDRef &imageItem, uint32 *dataSize) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

The IImageItem interface is a simple interface that lives on every raster image based page item. Most often, the presense of this interface is used as a test as to whether or not a given page item is a raster image. Also, this interface can be used to obtain color profile data from an image containing an embedded profile.

Member Enumeration Documentation

anonymous enum

default IID for this interface

Member Function Documentation

virtual uchar* IImageItem::GetProfileData (const UIDRefimageItem,
uint32 * dataSize 
) const
pure virtual

Retrieve the embedded color profile information from a full resolution image.

Parameters
imageItem- IN: This paramater is not used because this interface lives on the boss of the image and hence we already know the UIDRef. That is, the UIDRef of the image is equal to ::GetUIDRef(this).
dataSize- OUT: On return, the size of the profile data.
Returns
A pointer to the profile data which the client is responsible for deleting.
virtual bool32 IImageItem::HasProfile (void ) const
pure virtual

Determine whether or not this image has an embedded profile.

Returns
kTrue if the image has an embedded profile.