L_ClrConvert

#include "ltkrn.h"
#include "ltclr.h"

L_LTCLR_API L_INT L_ClrConvert(ClrHandle, pSrc, pDst, nWidth, nHeight, nInAlign, nOutAlign)

L_HANDLE ClrHandle;

handle to the color conversion

L_UCHAR * pSrc;

pointer to the input buffer

L_UCHAR * pDst;

pointer to the output buffer

L_INT nWidth;

width of pixels to be processed

L_INT nHeight;

height of pixels to be processed

L_INT nInAlign;

each scanline in the input buffer is multiple of nInAlign bytes

L_INT nOutAlign;

each scan line in the output buffer is multiple of nOutAlign bytes

Converts image data in a buffer from one color conversion model to another.

Parameter

Description

ClrHandle

Handle to an existing color conversion. This handle is obtained by calling the L_ClrInit function.

pSrc

Pointer to the buffer holding the input data.

pDst

Pointer to the buffer that will hold the converted data.

nWidth

Width of pixels to be processed.

nHeight

Height of pixels to be processed.

nInAlign

Each scanline in the input buffer is a multiple of nInAlign bytes.

nOutAlign

Each scan line in the output buffer is a multiple of nOutAlign bytes.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Conversion is done by setting the active method value specified in the CONVERSION_PARAMS structure when calling L_ClrInit. To change the active method, use L_ClrSetConversionParams. Only methods supported by the initialized converter should be specified.

Platforms

Win32, x64.

Required DLLs and Libraries

LTCLR

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_ClrInit

Topics:

Conversion Process

 

Color Conversion C API Function Groups

Example

For an example, refer to L_ClrInit.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Color Conversion C API Help