GetOutlinePen() public method

public GetOutlinePen ( ) : Pen
return System.Drawing.Pen
Exemplo n.º 1
0
 private void drawLinePathSelectionAndOutline(Graphics g, bool selected, PointF[] pathPoints, PolylineStyle style)
 {
     if (selected)
     {
         // allocation
         float w = style.Width + (style.UseOutline ? style.OutlineWidth * 2 + 2 : 3);
         using (Pen p = new Pen(_selectionColor, w))
         {
             p.MiterLimit = 3;
             g.DrawLines(p, pathPoints);
         }
     }
     else
     {
         // Stroke
         if (style.UseOutline)
             using (Pen p = style.GetOutlinePen())
             {
                 p.MiterLimit = 3;
                 g.DrawLines(p, pathPoints);
             }
     }
 }