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

Dialog Based Initialization

Show in webframe

The Color Conversion C++ Class Library provides a color space dialog that can be used to initialize a conversion. To do a dialog based initialization follow the steps below:

1.

Define the following global variables:

LColor clr;
L_UCHAR *pRGBData;
L_UCHAR *pLABData;
L_INT nWidth;
L_INT nHeight;
L_INT nInAlign;
L_INT nOutAlign;

2.

Display the color space dialog box to initialize as follows:

clr.ClrDlg (DLG_LAB, NULL, NULL);

3.

Convert from RGB to CIELab as follows:

clr.Convert (pRGBData, pLABData, nWidth, nHeight, nInAlign, nOutAlign);

4.

At the end, free the color conversion object:

clr.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.