public GDIPen(Color color, int width) { hPen = NativeMethods.CreatePen(0, width, NativeMethods.ColorToInt(color)); Create(); }