public static PenHandle CreatePen(PenStyleExtended style, uint width, COLORREF color, PenEndCap endCap = PenEndCap.Round, PenJoin join = PenJoin.Round) => GdiMethods.CreatePen(style, width, color, endCap, join);
public static PenHandle CreatePen(PenStyleExtended style, uint width, COLORREF color, PenEndCap endCap = PenEndCap.Round, PenJoin join = PenJoin.Round) { LOGBRUSH brush = new LOGBRUSH { lbColor = color, lpStyle = BrushStyle.Solid }; return(Imports.ExtCreatePen( (uint)style | (uint)PenType.Geometric | (uint)endCap | (uint)join, width, ref brush, 0, null)); }