本文整理汇总了C#中PointF.ToSD方法的典型用法代码示例。如果您正苦于以下问题:C# PointF.ToSD方法的具体用法?C# PointF.ToSD怎么用?C# PointF.ToSD使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PointF
的用法示例。
在下文中一共展示了PointF.ToSD方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Create
public object Create (Color startColor, Color endColor, PointF startPoint, PointF endPoint)
{
var brush = new sd2.LinearGradientBrush (startPoint.ToSD (), endPoint.ToSD (), startColor.ToSD (), endColor.ToSD ());
return new BrushObject {
Brush = brush,
InitialMatrix = brush.Transform
};
}
示例2: AddBezier
public void AddBezier (PointF start, PointF control1, PointF control2, PointF end)
{
Control.AddBezier (start.ToSD (), control1.ToSD (), control2.ToSD (), end.ToSD ());
}
示例3: TransformPoint
public PointF TransformPoint (PointF p)
{
return control.TransformPoint(p.ToSD()).ToEto();
}
示例4: AddCurveToPoint
private void AddCurveToPoint(PointF point1, PointF point2, PointF point3)
{
Check(point1);
Check(point2);
Check(point3);
#if UNIFIED
Control.AddCurveToPoint(point1.ToNS(), point2.ToNS(), point3.ToNS());
#else
Control.AddCurveToPoint(point1.ToSD(), point2.ToSD(), point3.ToSD());
#endif
}
示例5: TransformPoint
public PointF TransformPoint (PointF p)
{
return Platform.Conversions.ToEto (control.TransformPoint (p.ToSD ()));
}
示例6: TransformPoint
public PointF TransformPoint (PointF p)
{
var px = new sd.PointF[] { p.ToSD () };
Control.TransformPoints (px);
return px [0].ToEto ();
}
示例7: AddCurveToPoint
private void AddCurveToPoint(PointF point1, PointF point2, PointF point3)
{
Check(point1);
Check(point2);
Check(point3);
Control.AddCurveToPoint(point1.ToSD(), point2.ToSD(), point3.ToSD());
}
示例8: Create
public object Create (Color startColor, Color endColor, PointF startPoint, PointF endPoint)
{
return new BrushObject {
Gradient = new CGGradient(CGColorSpace.CreateDeviceRGB(), new CGColor [] { startColor.ToCGColor (), endColor.ToCGColor () } ),
InverseGradient = new CGGradient(CGColorSpace.CreateDeviceRGB(), new CGColor [] { endColor.ToCGColor (), startColor.ToCGColor () } ),
StartPoint = startPoint.ToSD (),
EndPoint = endPoint.ToSD ()
};
}