SetPixel function Null safety gdi32
The SetPixel function sets the pixel at the specified coordinates to the specified color.
COLORREF SetPixel(
HDC hdc,
int x,
int y,
COLORREF color
);
Implementation
int SetPixel(int hdc, int x, int y, int color) {
final _SetPixel = _gdi32.lookupFunction<
Uint32 Function(IntPtr hdc, Int32 x, Int32 y, Uint32 color),
int Function(int hdc, int x, int y, int color)>('SetPixel');
return _SetPixel(hdc, x, y, color);
}