Using ICC Profile Functions

The ICC Profile format is defined by the International Color Consortium (ICC). For background on the origination and purpose of this format, refer to www.color.org.

Creating an ICC Profile

To create an ICC profile, start by calling LFile::InitICCProfileExt to initialize an ICC profile structure (ICCPROFILEEXT). This must be called before creating a new profile or loading an existing profile.

Loading an ICC Profile

ICC profiles can be saved to ICC files or embedded in image files and loaded at a later date. Before loading an existing ICC profile from a saved file, the LFile::InitICCProfileExt function must be called to initialize the ICC profile structure.

To load an ICC profile from an image file, call LFile::LoadICCProfileExt. This function loads the pData member of the ICCPROFILEEXT structure with a pointer to one block of memory that contains the entire ICC profile. It also loads the uDataSize member with the size of the profile.

Saving an ICC Profile

An ICC profile can be saved, or embedded, in a TIFF, GIF or JPEG image file by calling LFile::SaveICCProfile.

Freeing an ICC Profile

When an ICC profile structure is no longer needed, free the structure by calling LFile::FreeICCProfileExt.