LEADTOOLS Color Conversion C DLL Help > Getting Started with LEADTOOLS Color Space Conversion > Initializing a Color Conversion Handle |
To begin using the LEADTOOLS Color Conversion toolkit, initialize a color conversion handle. To do this, call the L_ClrInit function. Each call to the L_ClrInit function will create a color conversion handle of type L_HANDLE. This handle is passed to many of the LEADTOOLS Color Conversion C DLL functions, so this function must be called before calling many functions in case of indirect conversion.
Another way to initialize a color conversion handle is by calling L_ClrDlg, which brings up a color space option dialog. Based on the option set in that dialog, a color handle will be returned and/or the option specified in the dialog packed in CONVERSION_PARAMS instance.
To check the validity of the created color conversion handle call the L_ClrIsValid function.
To determine whether an image file has an embedded ICC profile, call the L_HasICCProfile function.
See Also:
Programming with Color Conversion
Color Conversion C DLL Function Groups