CreatePen function gdi32

HPEN CreatePen(
  1. PEN_STYLE iStyle,
  2. int cWidth,
  3. COLORREF color
)

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.

To learn more, see learn.microsoft.com/windows/win32/api/wingdi/nf-wingdi-createpen.

Implementation

@pragma('vm:prefer-inline')
HPEN CreatePen(PEN_STYLE iStyle, int cWidth, COLORREF color) =>
    HPEN(_CreatePen(iStyle, cWidth, color));