To begin using the LEADTOOLS Color Conversion toolkit, the user must initialize a Color Conversion object. This is done by calling the LColor::Initialize function. Each call to the LColor::Initialize function will create a color conversion object of type LColor. This object is used to call many of the LEADTOOLS Color Conversion C++ Class Library functions, so this function must be called before calling many functions in case of indirect conversion.
Another way to initialize a color conversion object is by calling LColor::ClrDlg, which brings up a color space option dialog. Based on the option set in that dialog, a color conversion object 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 object call the LColor::IsValid function.