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


Leonardo: The RWGetPixelRGB16 function

This function rereieves the RGB color value of the pixel at the specified x-y coordinate.

void API RWGetPixelRGB16(
HDIBRW hDibRW,
int x,
int y,
LPRGBQUAD16 lpRgbQuad16);

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.)

lpRgbQuad16 LPRGBQUAD16 Pointer to an RGBQUAD16 - structure into which the RGB color values of the pixel are written.