Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.29
LEADTOOLS Color Conversion C DLL Help

Converting Large Images

Show in webframe

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 L_ColorConvertDirect processes either the entire image, or an entire scan line:

For the entire image, use:

L_ColorConvertDirect (CCS_CMYK, CCS_RGB, pIn, pOut, 640, 480, 0, 0);

or, for an entire scan line, use:

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

   L_ColorConvertDirect (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:

Introduction

Programming with Color Conversion

Color Conversion C DLL Function Groups

Color Conversion Tutorials

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.