Color Conversion to an Image

The Color Conversion C API provides direct color conversion to an image. To do a conversion, follow the steps below:

  1. Define the following global variables:

    BITMAPHANDLE LeadBitmap;   
    L_UCHAR *pLABData; 

  2. To convert 320x240 24 bit CIELab data to a LEAD bitmap with RGB24, do the following:

    L_ClrConvertDirectToBitmap(CCS_LAB, CCS_RGB, pLABData, &LeadBitmap, sizeof(BITMAPHANDLE), 320, 240, 0, 0);   
    // You can use the Lead bitmap as you want 

  3. At the end, free the bitmap handle:

    L_FreeBitmap(&LeadBitmap); 

See Also

Introduction

Bitmap Conversion Options

Getting Started

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

LEADTOOLS Color Conversion C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.