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++ Class Library Help

Color Conversion to an Image

Show in webframe

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

1.

Define the following global variables:

LBitmapBase LeadBitmap;
L_UCHAR *pLABData;

2.

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

LColor::ConvertDirectToBitmap (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 object:

LeadBitmap.Free();

See Also:

Introduction

Programming with Color Conversion

Raster Image Functions: Color Conversion

Color Conversion Tutorials

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