ApplyLUT

#include "BIFILTER.H"

 

HANDLE CALLBACK ApplyLUT( HANDLE   hDIB1,
HANDLE   hLUT,
BOOL         bUndoMode,
LPINT        lpnErrorFlag)

Description

Apply LUT(Look-Up Table) for 'recolouring' the pixels of a grayscale (8 bits/pixel) device independent bitmap.

Depending on bUndoMode, a new bitmap will be generated or the original one will be modified.

Independently from the palette of original bitmap, the output palette will be linear.

Parameters

HANDLE

hDIB1

Handle to a device independent bitmap.

HANDLE

hLUT

Handle to a LUT.(256 unsigned byte).

BOOL

bUndoMode

If TRUE a new DIB will be created, otherwise the original one will be modified..

LPINT

lpnErrorFlag

Pointer to an error code. If IOK there is no error.

Return values

Return a handle to the device independent bitmap if successful or NULL if fails.

Programming notes

None.

Requirements

Header :     Declared in BIFilter.h; include BIFilter.h.

Library :    Use BIFilter.lib.

DLLs :       BIFilter.dll.

Code example

None at present.