LFile::FreeICCProfile

#include "ltwrappr.h"

L_INT LFile::FreeICCProfile(pICCProfile)

pMEMICCPROFILE pICCProfile;

/* pointer to a structure */

Frees the memory allocated by LFile::InitICCProfile.

Parameter

Description

pICCProfile

Pointer to the MEMICCPROFILE structure to be freed.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

When the MEMICCPROFILE structure initialized by LFile::InitICCProfile is no longer needed, the memory must be freed 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::InitICCProfile

Topics:

Raster Image Functions: Loading Files

 

Loading and Saving Images

Example

LFile MyFile;
MEMICCPROFILE ICCProfile;

// initialize the MEMICCPROFILE structure
if (MyFile.InitICCProfile(&ICCProfile, sizeof(MEMICCPROFILE)) == SUCCESS)
   
MessageBox(TEXT("InitICCProfile SUCCESS"));

// load the embedded ICC profile
if(MyFile.LoadICCProfile(TEXT("embeddedICC.jpg"), &ICCProfile, NULL) == SUCCESS)
{
   
MessageBox(TEXT("LoadICCProfile SUCCESS"));
   
if(MyFile.FreeICCProfile(&ICCProfile) == SUCCESS)
      
MessageBox(TEXT("FreeICCProfile SUCCESS"));
}