本文整理汇总了C#中Eto.Drawing.PointF.ToWpf方法的典型用法代码示例。如果您正苦于以下问题:C# PointF.ToWpf方法的具体用法?C# PointF.ToWpf怎么用?C# PointF.ToWpf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Eto.Drawing.PointF
的用法示例。
在下文中一共展示了PointF.ToWpf方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Create
public object Create (Color startColor, Color endColor, PointF startPoint, PointF endPoint)
{
return new swm.LinearGradientBrush (startColor.ToWpf (), endColor.ToWpf (), startPoint.ToWpf (), endPoint.ToWpf ()) {
MappingMode = swm.BrushMappingMode.Absolute,
SpreadMethod = swm.GradientSpreadMethod.Repeat
};
}
示例2: AddLine
public void AddLine(PointF point1, PointF point2)
{
sink.AddLines(
new s.DrawingPointF[]
{
point1.ToWpf(),
point2.ToWpf()
});
}
示例3: Create
public object Create(Color startColor, Color endColor, PointF center, PointF gradientOrigin, SizeF radius)
{
return new swm.RadialGradientBrush(startColor.ToWpf(), endColor.ToWpf())
{
Center = center.ToWpf(),
GradientOrigin = gradientOrigin.ToWpf(),
RadiusX = radius.Width,
RadiusY = radius.Height,
MappingMode = swm.BrushMappingMode.Absolute,
SpreadMethod = swm.GradientSpreadMethod.Pad
};
}
示例4: AddBezier
public void AddBezier(PointF pt1, PointF pt2, PointF pt3, PointF pt4)
{
sink.AddLine(pt1.ToWpf());
sink.AddBezier(
new sd.BezierSegment
{
Point1 = pt2.ToWpf(),
Point2 = pt3.ToWpf(),
Point3 = pt4.ToWpf()
});
}
示例5: TransformPoint
public PointF TransformPoint(PointF p)
{
s.DrawingPointF v =
s.Matrix3x2.TransformPoint(
this.Control,
p.ToWpf()); // implicit conversion from Vector2 to DrawingPointF
return v.ToEto();
}
示例6: AddBezier
public void AddBezier (PointF start, PointF control1, PointF control2, PointF end)
{
ConnectTo (start.ToWpf ());
figure.Segments.Add (new swm.BezierSegment (control1.ToWpf (), control2.ToWpf (), end.ToWpf (), true));
CurrentPoint = end;
}
示例7: TransformPoint
public PointF TransformPoint (PointF point)
{
return control.Transform (point.ToWpf ()).ToEto ();
}
示例8: MoveTo
public void MoveTo(PointF point)
{
sink.BeginFigure(
point.ToWpf(),
sd.FigureBegin.Filled); // is this correct?
}