LFile::InitICCProfile

#include "ltwrappr.h"

L_INT LFile::InitICCProfile(pICCProfile, nSize)

pMEMICCPROFILE pICCProfile;

/* pointer to a structure */

L_INT nSize;

/* size of the structure */

Initializes an MEMICCPROFILE structure.

Parameter

Description

pICCProfile

Pointer to the MEMICCPROFILE structure to initialize.

nSize

Value that indicates the size of the structure pointed to by pICCProfile. Pass sizeof(MEMICCPROFILE).

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

A MEMICCPROFILE structure must be initialized before loading an ICC profile. To initialize a MEMICCPROFILE structure, call LFile::InitICCProfile with the nSize parameter set to sizeof(MEMICCPROFILE).

When the MEMICCPROFILE structure is no longer needed, be sure to free the memory allocated 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::LoadICCProfile, LFile::FreeICCProfile

Topics:

Raster Image Functions: Loading Files

 

Loading and Saving Images

Example

For an example, refer to LFile::FreeICCProfile.