Exemplo n.º 1
0
        public System.Drawing.Pen GetGdiPlusPen()
        {
            var result = Stroke != null ? new System.Drawing.Pen(Stroke.AsGdiBrush(), (int)StrokeThickness) : null;

            if (DashStyle != null && result != null)
            {
                result.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
            }

            if (result != null)
            {
                result.LineJoin = System.Drawing.Drawing2D.LineJoin.Round;
            }

            return(result);
        }