public void FillCell(PaintContext pc, Pt pt, Pen pe, Brush br) { Pt[] vs = Vertices(pt); Point[] pts = pc.Points(vs); pc.Graphics.DrawPolygon(Pens.Green, pts); pc.Graphics.FillPolygon(br, pts); }
public void DrawSolution(PaintContext pc, Color solutionColor) { if (_soln == null) { return; } //using (Pen pe = new Pen(Color.Black, 1.5f)) using (Pen pe = new Pen(solutionColor, 5.0f)) { pe.LineJoin = System.Drawing.Drawing2D.LineJoin.Round; pc.Graphics.DrawLines(pe, pc.Points(_soln)); } }