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

Dialog Based Initialization (Visual Basic)

Show in webframe

The Color Conversion C DLL 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:

Dim RGBData(100) As Byte
Dim LABData(100) As Byte
Dim nWidth As Integer
Dim nHeight As Integer
Dim nInAlign As Integer
Dim nOutAlign As Integer
Dim ClrHandle As Long 'color handle
Dim cnvParam As CONVERSION_PARAMS

2.

Display the color space dialog box to initialize as follows:

L_ClrDlg DLG_LAB, Form1.hWnd, ClrHandle, cnvParam

3.

Convert from RGB to CIELab as follows:

L_ClrConvert ClrHandle, RGBData(0), LABData(0), nWidth, nHeight, nInAlign, nOutAlign

4.

At the end, free the color conversion handle:

L_ClrFree ClrHandle

See Also:

Introduction

Programming with Color Conversion

Color Conversion C DLL Function Groups

Visual C++ Tutorials

Delphi Tutorials

Visual Basic Tutorials

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