Introduction: Color Conversion

Color Conversion functions enable conversion between color-spaces using different methods and options. LEADTOOLS supports the following conversions:

Source Color Space Can be converted to Conversion method Recommended
RGB Any other color space. Built-in, ICC profiles, or emulation tables, depending on the destination color space.
BGR Any other color space. Built-in, ICC profiles, or emulation tables, depending on the destination color conversion.
YUV Any other color space. Built-in.
CMYK Any other color space. Emulation Tables (one way CMYK => RGB) The best conversion is through the ICC Profiles (USE_ICC). This is because of the nature of the CMYK conversion, which is machine-dependent. You can use profiles that vary in the degree of black color (ink) generation.
ICC Profiles.
Built-in.
HSV Any other color space. Built-in.
HLS Any other color space. Built-in.
YIQ Any other color space. Built-in.
CMY Any other color space. Built-in.
ICC Profiles
LAB Any other color space. Emulation Tables (one way CMYK => RGB). For two-way conversion, RGB to LAB and vice versa, the best solution is with emulation tables and Built in conversions, because the colors are preserved better. However for one way you can use ICC profiles.
ICC Profiles.
Built-in.
XYZ Any other color space. Built-in.
YCCK Any other color space. Built-in.
Y41P Any other color space. Built-in.
UYVY Any other color space. Built-in.
YUY2 Any other color space. Built-in.
YVU9 Any other color space. Built-in.
YCC Any other color space. Built-in.

LEADTOOLS uses the following methods for conversion between color conversions:

Each of the conversion methods listed above can be customized. For example, conversion between RGB to CMY with ICC color conversion profiles can be done with either the built-in profiles or with user-supplied profiles as shown in the table above.

For more information, refer to:

Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Color Conversion C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.