Initializing a Color Conversion Handle
To begin using the LEADTOOLS Color Conversion toolkit, the user must initialize a color conversion handle. This is done by calling the L_ClrInit function. Each call to the L_ClrInit function will create a color conversion handle of type HANDLE. This handle is passed to many of the LEADTOOLS Color Conversion API 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.