Ellipse function Null safety gdi32

int Ellipse(
  1. int hdc,
  2. int left,
  3. int top,
  4. int right,
  5. int bottom
)

The Ellipse function draws an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by using the current pen and is filled by using the current brush.

BOOL Ellipse(
  HDC hdc,
  int left,
  int top,
  int right,
  int bottom
);

Implementation

int Ellipse(int hdc, int left, int top, int right, int bottom) {
  final _Ellipse = _gdi32.lookupFunction<
      Int32 Function(
          IntPtr hdc, Int32 left, Int32 top, Int32 right, Int32 bottom),
      int Function(
          int hdc, int left, int top, int right, int bottom)>('Ellipse');
  return _Ellipse(hdc, left, top, right, bottom);
}