GetDIBPixelColor

#include "BIDIB.H"

 

BOOL CALLBACK GetDIBPixelColor( HANDLE         hDIB,
DWORD          x,
DWORD          y,
COLORREF*  pColor)

Description

The GetDIBPixelColor function returns the color of a pixel from a device independent bitmap (DIB).

Parameters

HANDLE

hDIB

Handle to a DIB.

DWORD

x

x coordinate of the pixel

DWORD

y

y coordinate of the pixel

COLORREF*

pColor

Pointer to a COLORREF value. The pixel’s color will be returned in this parameter.

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.