CreatePen function Null safety gdi32
The CreatePen function creates a logical pen that has the specified style, width, and color. The pen can subsequently be selected into a device context and used to draw lines and curves.
HPEN CreatePen(
int iStyle,
int cWidth,
COLORREF color
);
Implementation
int CreatePen(int iStyle, int cWidth, int color) {
final _CreatePen = _gdi32.lookupFunction<
IntPtr Function(Int32 iStyle, Int32 cWidth, Int32 color),
int Function(int iStyle, int cWidth, int color)>('CreatePen');
return _CreatePen(iStyle, cWidth, color);
}