Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
ToBezierPoints Method
See Also 
Leadtools Namespace > RasterCurve Class : ToBezierPoints Method




Converts the curve points to an array of Bezier points.

Syntax

Visual Basic (Declaration) 
Public Function ToBezierPoints() As Point()
Visual Basic (Usage)Copy Code
Dim instance As RasterCurve
Dim value() As Point
 
value = instance.ToBezierPoints()
C# 
public Point[] ToBezierPoints()
Managed Extensions for C++ 
public: Point[]* ToBezierPoints(); 
C++/CLI 
public:
array<Point>^ ToBezierPoints(); 

Return Value

An array of Point values that contain the Bezier points.

Example

This sample draws a smooth closed curve on a graphics that goes through five points.

Remarks

This method is used to convert a standard curve to an array of Bezier control points. A standard curve (RasterCurveType.Standard) is defined by the current RasterCurve. The standard curve passes through all of the points in the Points collection, and is continuous at each point. This method can be used to draw a curve by converting it to an array of Bezier points, using Graphics.DrawBeziers to draw the equivalent Bezier(s).

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also