#include "BIImage.H"
HANDLE CALLBACK DitherFS4( HANDLE hDIB,
int nBitCount)
Description
Dithering a device independent bitmap (DIB) with the Floyd-Steinberg method.
Parameters
|
HANDLE |
hDIB |
Handle to the DIB to be dithered. |
|
Int |
nBitCount |
Dithering to nBitCount bits ( 1, 4, 8) per pixel. |
Return values
Handle to the newly created DIB or NULL on error.
Programming notes
This function does not delete the original DIB. This is a memory intensive operation, make sure you have enough memory.
Requirements
Header : Declared in BIImage.h; include BIImage.h.
Library : Use BIImage.lib.
DLLs : BIimage.dll.
Code example
#include "BIImage.H"
HDIB hDIB, hDithDIB;
if (!hDithDIB = DitherFS4(hDIB, nDeviceBits))
{
// error
} else
{
GlobalFree(hDIB);
}