public override void Draw(NGraphics.ICanvas canvas, NGraphics.Rect rect) { base.Draw(canvas, rect); const double delta = -10.0; const double yOffset = 20; var width = rect.Width; var height = rect.Height; var points = new PathOp[] { new MoveTo(0, yOffset - delta), new CurveTo(new NGraphics.Point(width/2, yOffset + delta), new NGraphics.Point(width/2, yOffset + delta), new NGraphics.Point(width, yOffset - delta)), new LineTo(width, height), new LineTo(0, height) }; canvas.DrawPath(points, null, new SolidBrush(new NGraphics.Color(0, 0.722, 1, 1))); }
void Add(PathOp op) { Operations.Add (op); }
void Add(PathOp op) { Operations.Add(op); }