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


Leonardo: The RWSetPixelRGB16 function

This function sets a pixel at the specified x-y coordinates to the best possible approximation of the color value in parameter lprgbQuad16.

void API RWSetPixelRGB16(
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 set; 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 set; 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 which contains the new color for the pixel.