L_LoadICCProfile
#include "l_bitmap.h"
L_INT EXT_FUNCTION L_LoadICCProfile(pszFilename, pICCProfile, pLoadOptions)
/* 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 multi-page and you can load the profile from a particular page using the pLoadOptions parameter.
Initialize the structure pointed to by pICCProfile first by calling L_InitICCProfile. If L_LoadICCProfile succeeds, free the ICC profile by calling L_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. |
Platforms
Windows 95 / 98 / Me, Windows 2000 / XP.
See Also
Functions: |
|
Topics: |
|
|
Example
For an example, refer to L_FreeICCProfile.