Accusoft.PrintProSdk Namespace > Draw Class > Curve Method : Curve(Point,Point,Point,Point,Color) Method |
'Declaration Public Overloads Sub Curve( _ ByVal startPoint As Point, _ ByVal controlPoint1 As Point, _ ByVal controlPoint2 As Point, _ ByVal endPoint As Point, _ ByVal color As Color _ )
'Usage Dim instance As Draw Dim startPoint As Point Dim controlPoint1 As Point Dim controlPoint2 As Point Dim endPoint As Point Dim color As Color instance.Curve(startPoint, controlPoint1, controlPoint2, endPoint, color)
public void Curve( Point startPoint, Point controlPoint1, Point controlPoint2, Point endPoint, Color color )
public: void Curve( Point startPoint, Point controlPoint1, Point controlPoint2, Point endPoint, Color color )
public: void Curve( Point startPoint, Point controlPoint1, Point controlPoint2, Point 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.