The LEADTOOLS C++ Class Library is a wrapper to the LEADTOOLS C API and provides only a subset of the features and functionality otherwise available in the LEADTOOLS C API. For more information about the full feature set of the LEADTOOLS C API, refer to LEADTOOLS C API Introduction.
The PAINTHANDLE structure serves as a working area for the painting functions. The user can initialize the paint handle at the start of program and save it in a variable. The paint handle can then be used with any LEAD paint tools function. When the paint handle is no longer needed, the user can free it. Therefore, the user does not have to initialize the paint handle and free it every time it is used.