示例#1
0
		void AddBezier(PointF pt2, PointF pt3, PointF pt4)
		{
			Sink.AddBezier(new sd.BezierSegment
			{
				Point1 = pt2.ToDx(),
				Point2 = pt3.ToDx(),
				Point3 = pt4.ToDx()
			});

			CurrentPoint = pt4;
		}
示例#2
0
		public PointF TransformPoint(PointF p)
		{
			s.Vector2 v = s.Matrix3x2.TransformPoint(this.Control, p.ToDx()); // implicit conversion from Vector2 to Vector2
			return v.ToEto();
		}
示例#3
0
		void ConnectTo(PointF p)
		{
			var pt = p.ToDx();
			if (isInFigure)
				Sink.AddLine(pt);
			else
			{
				isInFigure = true;
				// create filled for when we fill with a brush
				Sink.BeginFigure(pt, sd.FigureBegin.Filled);
			}

			CurrentPoint = p;
		}
 public void AddLines(PointF[] points)
 {
     sink.AddLines(points.ToDx());
 }