Halftone

#include "BIDIB.H"

 

HANDLE CALLBACK Halftone( HANDLE    hDIB,
WORD         nMethode,
int                 nIntControl,
LPWORD    lpErrCode)

Description

Convert the device independent bitmap (DIB) to monochrome by applying one of the three Halftoning algorithms: Line Art, Error Diffusion, or Ordered Dither.

Parameters

HANDLE

hDIB

Handle of the DIB.

WORD

nMethode

Haltone method.

int

nIntControl

Intensity control can be in the range of  -128 to +128.

LPWORD

lpErrCode

Error code.

Return values

HANDLE of the scaled DIB or NULL on error.

Programming notes

This function deletes the original DIB.

The nMethod:

0          Line Art.

1          Error Diffusion

2          Ordered Dither

Requirements

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

Library :    Use BiDIB.lib.

DLLs :       BiDIB.dll.

Code example None at present.