SetDIBPixelColor

#include "BIDIB.H"

 

BOOL CALLBACK SetDIBPixelColor( HANDLE       hDIB,
DWORD         x,
DWORD         y,
COLORREF   Color)

Description

The SetDIBPixelColor function sets the color of a pixel in a device independent bitmap (DIB).In the case of 8 bit images, the color you pass to the function must be in the color palette of the image.

Parameters

HANDLE

hDIB

Handle to a DIB.

DWORD

x

x coordinate of the pixel

DWORD

y

y coordinate of the pixel

COLORREF

Color

COLORREF value that contains the color of the pixel.

Return values

TRUE on success, FALSE on failure..

Requirements

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

Library :    Use BiDIB.lib.

DLLs :       BiDIB.dll.

Code example

None.