public void Draw(Graphics graphics) { using (var pen = PenBillet.CreatePen()) { graphics.DrawCurve(pen, points_); } }
public RectangleShape(Point upperLeftCorner, Point lowerRightCorner, PenBillet billet) { upperLeftCorner_ = upperLeftCorner; penBillet_ = billet; width_ = lowerRightCorner.X - upperLeftCorner.X; height_ = lowerRightCorner.Y - upperLeftCorner.Y; }
/// <summary> /// Creates an arc shape. /// </summary> /// <param name="rect">Bounding rectangle of the ellipse the arc belongs to.</param> /// <param name="startAngle"></param> /// <param name="sweepAngle"></param> /// <param name="penBillet"></param> public ArcShape(Rectangle rect, float startAngle, float sweepAngle, PenBillet penBillet) { rect_ = rect; startAngle_ = startAngle; sweepAngle_ = sweepAngle; penBillet_ = penBillet; }
public CurveShape(IEnumerable <Point> points, PenBillet billet) { penBillet_ = billet; points_ = points.ToArray(); }
public LineShape(Point start, Point end, PenBillet billet) { start_ = start; end_ = end; penBillet_ = billet; }