Delphi does not support a Pixel function with a HDC, you have to use the Windows-API-function
COLORREF SetPixel(
HDC hdc, // handle to device context
int X, // x-coordinate of pixel
int Y, // y-coordinate of pixel
COLORREF crColor // pixel color
);
It returns the color that was on the pixel before the call.
Oregon Ghost