CreateHalftonePalette function Null safety gdi32

int CreateHalftonePalette(
  1. int hdc
)

The CreateHalftonePalette function creates a halftone palette for the specified device context (DC).

HPALETTE CreateHalftonePalette(
  HDC hdc
);

Implementation

int CreateHalftonePalette(int hdc) {
  final _CreateHalftonePalette =
      _gdi32.lookupFunction<IntPtr Function(IntPtr hdc), int Function(int hdc)>(
          'CreateHalftonePalette');
  return _CreateHalftonePalette(hdc);
}