GetNearestColor function Null safety gdi32
The GetNearestColor function retrieves a color value identifying a color from the system palette that will be displayed when the specified color value is used.
COLORREF GetNearestColor(
HDC hdc,
COLORREF color
);
Implementation
int GetNearestColor(int hdc, int color) {
final _GetNearestColor = _gdi32.lookupFunction<
Int32 Function(IntPtr hdc, Int32 color),
int Function(int hdc, int color)>('GetNearestColor');
return _GetNearestColor(hdc, color);
}