In This Topic ▼

Converting Large Images

When using the toolkit to convert a large image, you will obtain better performance if you convert a large number of pixels with each function call. In the following examples, a single call to LColor::ConvertDirect processes either the entire image, or an entire scan line:

For the entire image, use:

LColor::ConvertDirect (CCS_CMYK, CCS_RGB, pIn, pOut, 640, 480, 0, 0); 

or, for an entire scan line, use:

for (int k=0; k<480; k++) 
   LColor::ConvertDirect (CCS_CMYK, CCS_RGB, pIn, pOut, 640, 1, 0, 0);  

but do not use:

for (int k=0; k<480; k++) 
   for (int k=0; k<640; k++)  

See Also

Topics:

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.