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

Color Conversion to an Image (Visual Basic)

Show in webframe

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

1.

Define the following global variables:

Dim LABData(100) As Byte
Dim LBitmap As LEADBitmapHandle
Dim nWidth As Integer
Dim nHeight As Integer
Dim nInAlign As Integer
Dim nOutAlign As Integer

2.

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

L_ClrConvertDirectToBitmap CCS_LAB, CCS_BGR, LABData(0), LBitmap, Len(Lbitmap), nWidth, nHeight, nInAlign, nOutAlign

   ' You can use the Lead bitmap as you want

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.