Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
#include "ltwrappr.h"
L_INT LICCProfile::Fill(pData, uDataSize);
L_INT LICCProfile::Fill(pszFileName);
L_UCHAR * pData; |
/* data pointer */ |
L_UINT uDataSize; |
/* size of the data buffer */ |
L_TCHAR * pszFileName; |
/* name of the file to load */ |
Fills the class object©s ICCPROFILEEXT member structure fields with the appropriate ICC data either from a loaded ICC Profile or a directly from a specific file.
Parameter |
Description |
pData |
Pointer to a data buffer that contains the ICC profile as one piece. |
uDataSize |
Value that indicates the size of the data buffer that contains the ICC profile. |
pszFileName |
Character strings that containis the name of the ICC file from which to get the ICC data. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
When loading the ICC profile from a file using the LICCProfile::Load function, the ICC profile is stored into the pData pointer in the class object©s ICCPROFILEEXT member structure. Calling LICCProfile::Fill(pData, uDataSize) extracts the information from that ICC profile pointer, and fills the class object©s ICCPROFILEEXT member structure with the appropriate data for each field.
To fill a class object©s ICCPROFILEEXT member structure directly from an ICC profile file, call LICCProfile::Fill(L_TCHAR * pszFileName).
To save an ICC Profile data to an ICC Profile file call LICCProfile::GenerateFile.
Required DLLs and Libraries
LTCLR 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
Example
For an example for L_INT LICCProfile::Fill(pData, uDataSize), refer to LICCProfile::Initialize.
L_INT LICCProfile::Fill(pszFileName);
L_VOID Test()
{
L_INT nRet = 0 ;
/* This example initializes an ICC Profile, and fills its fields with ICC data directly read from an ICC file*/
LICCProfile IccProfile;
// Initialize the ICC profile
nRet = IccProfile.Initialize ();
// Fill it with ICC data directly from an ICC file
nRet = IccProfile.Fill(TEXT("file.icc"));
// Free the ICC Profile
IccProfile.Free ();
}