Accusoft.PrintProSdk Namespace > Draw Class > Curve Method : Curve(PointF,PointF,PointF,PointF,Color) Method |
'Declaration Public Overloads Sub Curve( _ ByVal startPoint As PointF, _ ByVal controlPoint1 As PointF, _ ByVal controlPoint2 As PointF, _ ByVal endPoint As PointF, _ ByVal color As Color _ )
'Usage Dim instance As Draw Dim startPoint As PointF Dim controlPoint1 As PointF Dim controlPoint2 As PointF Dim endPoint As PointF Dim color As Color instance.Curve(startPoint, controlPoint1, controlPoint2, endPoint, color)
public void Curve( PointF startPoint, PointF controlPoint1, PointF controlPoint2, PointF endPoint, Color color )
public: void Curve( PointF startPoint, PointF controlPoint1, PointF controlPoint2, PointF endPoint, Color color )
public: void Curve( PointF startPoint, PointF controlPoint1, PointF controlPoint2, PointF endPoint, Color color )
The curve starts at StartPoint going toward ControlPoint1 and arrives at EndPoint coming from the direction of ControlPoint2. Usually, it will not pass through ControlPoint1 or ControlPoint2; these points are only there to provide directional information. The distance between StartPoint and ControlPoint1 determines "how long" the curve moves into direction ControlPoint2 before turning towards EndPoint.