Conversions

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 (1) the entire image or (2) an entire scanline:

Use:

(1)

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

or

(2)

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

   L_ClrConvertDirect(CCS_CMYK, CCS_RGB, pIn, pOut, 640, 1, 0, 0); 

 

but not recommended to use:

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

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

         L_ClrConvertDirect(CCS_CMYK, CCS_RGB, pIn, pOut, 1, 1, 0, 0);