LFile::LoadICCProfile

#include "ltwrappr.h"

L_INT LFile::LoadICCProfile(pszFilename, pICCProfile, pLoadOptions)

L_TCHAR L_FAR * pszFilename;

/* name of the file to load */

pMEMICCPROFILE pICCProfile;

/* pointer to a structure */

pLOADFILEOPTION pLoadOptions;

/* pointer to optional extended load options */

Loads an embedded ICC profile.

Parameter

Description

pszFile

Character string containing the name of the file containing the embedded ICC profile.

pICCProfile

Pointer to a structure to be updated with the loaded ICC Profile.

pLoadOptions

Pointer to optional extended load options. Pass NULL to use the default load options, and the profile will be loaded from page 1.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

ICC profiles can be loaded from JPEG, TIFF or EPS files. TIFF files are multipage and you can load the profile from a particular page using the pLoadOptions parameter.

Initialize the structure pointed to by pICCProfile first by calling LFile::InitICCProfile. If LFile::LoadICCProfile succeeds, free the ICC profile by calling LFile::FreeICCProfile.

Required DLLs and Libraries

LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LFile::InitICCProfile, LFile::FreeICCProfile

Topics:

Raster Image Functions: Loading Files

 

Loading and Saving Images

Example

For an example, refer to LFile::FreeICCProfile.