コード例 #1
0
        public PointF TransformPoint(Point p)
        {
            s.DrawingPointF v =
                s.Matrix3x2.TransformPoint(
                    this.Control,
                    p.ToWpf()); // implicit conversion from Vector2 to DrawingPointF

            return(v.ToEto());
        }
コード例 #2
0
 public void AddLine(Point point1, Point point2)
 {
     sink.AddLines(
         new s.DrawingPointF[]
     {
         point1.ToWpf(),
         point2.ToWpf()
     });
 }
コード例 #3
0
ファイル: MatrixHandler.cs プロジェクト: philstopford/Eto
 public PointF TransformPoint(Point point)
 {
     return(control.Transform(point.ToWpf()).ToEto());
 }
コード例 #4
0
 public void DrawText(FormattedText formattedText, Point point)
 {
     context.DrawText(formattedText.ToWpf(), point.ToWpf());
 }
コード例 #5
0
 public void AddLine(Point point1, Point point2)
 {
     sink.AddLines(
         new s.DrawingPointF[]
         {
             point1.ToWpf(),
             point2.ToWpf()                   
         });
 }
コード例 #6
0
ファイル: MatrixHandler.cs プロジェクト: JohnACarruthers/Eto
		public PointF TransformPoint (Point point)
		{
			return control.Transform (point.ToWpf ()).ToEto ();
		}
コード例 #7
0
 public void DrawLine(Pen pen, Point startPoint, Point endPoint)
 {
     context.DrawLine(pen.ToWpf(), startPoint.ToWpf(), endPoint.ToWpf());
 }
コード例 #8
0
 public void DrawText(FormattedText formattedText, Point point, Rect?clipRegion = null)
 {
     context.DrawText(formattedText.ToWpf(), point.ToWpf());
 }