// ----------------------------------------------------------------------- // // Copyright 2013 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Media { /// /// Describes how a stroke is drawn. /// public class Pen { /// /// Initializes a new instance of the class. /// /// The brush used to draw. /// The stroke thickness. public Pen(Brush brush, double thickness) { this.Brush = brush; this.Thickness = thickness; } /// /// Initializes a new instance of the class. /// /// The stroke color. /// The stroke thickness. public Pen(uint color, double thickness) { this.Brush = new SolidColorBrush(color); this.Thickness = thickness; } /// /// Gets the brush used to draw the stroke. /// public Brush Brush { get; private set; } /// /// Gets the stroke thickness. /// public double Thickness { get; private set; } } }