public Pen(Brush brush, float width) { if (brush == null) throw new ArgumentNullException ("brush"); this.brush = (Brush)brush.Clone (); var sb = brush as SolidBrush; if (sb != null) color = sb.Color; else color = Color.Black; this.width = width; }