System.Drawing.Pen.Pen C# (CSharp) Method

Pen() public method

public Pen ( Brush brush, float width ) : CoreGraphics
brush Brush
width float
return CoreGraphics
        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;
        }

Same methods

Pen::Pen ( Brush brush ) : CoreGraphics
Pen::Pen ( Color color ) : CoreGraphics
Pen::Pen ( Color color, float width ) : CoreGraphics