CurveToBezier method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int __fastcall CurveToBezier (void);

Delphi Syntax

Function CurveToBezier (): Integer;

Overview

Refer to Creating and Using a Bitmap Region

Remarks

Converts a curve, defined by an array of points that the curve passes through, to an array of Bezier points. The resulting array can be used with the Windows API PolyBezier and PolyBezierTo procedures.

This method is used to convert a standard curve to an array of Bezier control points. A LEAD standard curve (CURVE_STANDARD) is defined by the array of points defined by the CurveX property, CurveY property and the CurveSize property. The standard curve passes through all of the points of the array, and is continuous at each point. This method can be used to draw this curve by converting it to an array of Bezier points.

At most, the resulting array holds (3n + 1) entries, where n is the number of points in the CURVE_STANDARD curve.

The curve to be converted is defined by the following properties:

image\sqrblit.gif CurveSize property

image\sqrblit.gif CurveX property

image\sqrblit.gif CurveY property

image\sqrblit.gif CurveType property

image\sqrblit.gif CurveTension property

image\sqrblit.gif CurveClose property

The resulting Bezier curve is defined by the following properties:

image\sqrblit.gif BezierSize property

image\sqrblit.gif BezierX property

image\sqrblit.gif BezierY property

Please note that the BezierSize, BezierX and BezierY properties are read only and are updated by calling the CurveToBezier method.

See Also

Elements:

CurveX property, CurveY property, SetRgnCurve method, CurveSize property, CurveType property, CurveClose property, CurveTension property, BezierSize property, BezierX property, BezierY property

Topics:

Raster Images: Creating and Using a Region