| Herd Software Development
|=
DaVinci Graphics Library
|==
DaVinci Documentation Home Search Order


Leonardo: The RWGetPixelIndex function

This function retrieves the binary pixel value at the specified x-y coordinates.

void API RWGetPixelIndex(
HDIBRW hDibRW,
int x,
int y,
LPRIXELINDEXUNTION lpPixelIndexUnion);

hDibRW HDIBRW Handle for DIB access returned by RWOpenDIB

x int Horizontal coordinate of the pixel to be retrieved; i.e. the number of the pixels from the left edge of the DIB to the desired pixel.

y int Vertical coordinate of the pixel to be retrieved; i.e. the number of the pixels from the bottom edge to the desired pixel. (0 in this function points to the bottom row of pixels, rather than the top row.)

lpPixelIndexUnion LPPIXELINDEXUNION Pointer to a PIXELINDEXUNION - structure in which the binary value of the pixel will be stored.