CIColorManagement

The CIColorManagement interface gets the names of the color management profiles in use in the current publication.


CIColorManagement methods

The CIColorManagement interface contains two methods.

PMXErr GetAllSourceProfiles(PMHandle *phProfileNames, unsigned short *pNameCnt, unsigned short *pSizeEach);

Returns a handle (phProfileNames) to a buffer. PageMaker allocates the buffer for you, however you must release the buffer using the FreeHandle method when you are done with it or else a memory leak will occur.

The buffer contains the names of all the profiles referenced by the publication. Each name is a null terminated string. pNameCnt is the number of profiles listed, and pSizeEach gives the size (in bytes) of the space allocated for each string. Each string in the buffer is allocated the same amount of space, though most of the names will not take that whole space.

Note: The Plug-in must lock the handle before using the buffer, and must unlock the handle and then call FreeHandle when it is done.

void FreeHandle(PMHandle aHandle);

Frees the handle aHandle. The handle must not be locked when FreeHandle is called.


Comments or suggestions? Contact Adobe Developer Support

Copyright © 1997 - 2001 Adobe Systems Incorporated. All rights reserved.
Legal notices and trademark attributions