PolyDraw function Null safety gdi32

int PolyDraw(
  1. int hdc,
  2. Pointer<POINT> apt,
  3. Pointer<Uint8> aj,
  4. int cpt
)

The PolyDraw function draws a set of line segments and B├ęzier curves.

BOOL PolyDraw(
  HDC         hdc,
  const POINT *apt,
  const BYTE  *aj,
  int         cpt
);

Implementation

int PolyDraw(int hdc, Pointer<POINT> apt, Pointer<Uint8> aj, int cpt) {
  final _PolyDraw = _gdi32.lookupFunction<
      Int32 Function(
          IntPtr hdc, Pointer<POINT> apt, Pointer<Uint8> aj, Int32 cpt),
      int Function(
          int hdc, Pointer<POINT> apt, Pointer<Uint8> aj, int cpt)>('PolyDraw');
  return _PolyDraw(hdc, apt, aj, cpt);
}