SetPixel function Null safety gdi32

int SetPixel (
  1. int hdc,
  2. int x,
  3. int y,
  4. int color
)

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<
      Int32 Function(IntPtr hdc, Int32 x, Int32 y, Int32 color),
      int Function(int hdc, int x, int y, int color)>('SetPixel');
  return _SetPixel(hdc, x, y, color);
}