DIB_Pixel


DWORD DIB_Pixel(LPPDEVICE lpDestDev, WORD X, WORD Y, DWORD dwPhysColor,
    LPDRAWMODE lpDrawMode)

Sets or retrieves the color of the specified pixel. The function sets the given pixel to the color given by the dwPhysColor parameter if the lpDrawMode parameter specifies a binary raster operation. DIB_Pixel returns the physical color of the pixel if the lpDrawMode parameter is NULL.

Value

Meaning

Physical color

lpDrawMode was NULL and function succeeded

0x00000001L

lpDrawMode was not NULL and function succeeded

0x80000000L

Error


lpDestDev

Address of a PDEVICE or PBITMAP structure specifying the destination device or bitmap.

X and Y

The x- and y-coordinates of the pixel to retrieve or set.

dwPhysColor

The physical color value used to set the pixel.

lpDrawMode

Address of a DRAWMODE structure specifying the binary raster operation to use to combine the physical color with the existing pixel color. If lpDrawMode is NULL, Pixel retrieves and returns the current color of the specified pixel.

The export ordinal for this function is 9.