Available in the LEADTOOLS Imaging toolkit. |
CurveSize property (Main Control)
Visual
Basic example
Visual C++ 4.0 example
Syntax long CurveSize
Overview: Refer to Creating and Using a Bitmap Region
Remarks
Indicates the size of the arrays (CurveX property and CurveY property) used to store the vertices of the curve.
This property is used by both the SetRgnCurve method and the CurveToBezier method.
The CurveType property can define two types of curves:
If the CurveType property is set to CURVE_STANDARD, the points contained in the CurveX property and the CurveY property represent a smooth curve that goes through all of the points. In this case, the CurveSize property must be at least three.
If the CurveType property is set to CURVE_BEZIER, the points contained in the CurveX property and the CurveY property represent a series of Bezier curves that use the points as control points. In this case, the CurveSize property must be 3n + 1, where n >= 1. For example, CurveSize can be 4, 7, 10, 13, and so on. The first four points define the first Bezier curve, and each subsequent group of three points defines the next Bezier curve, using the last point of the previous Bezier curve as the starting point.
To create a curve region, first build an ordered array of points for the curve. Then create the region based on the array. The CurveSize property specifies the size of the array. Either specify a large array to start with, or increase the size of the array as needed, without losing existing points. For each point, update the following indexed properties:
and define the characteristics of the curve by setting the following properties:
Then call the SetRgnCurve method to add the region to the bitmap.
See Also
Elements: CurveX property, CurveY property, SetRgnCurve method, CurveTension property, CurveToBezier method, CurveType property, CurveClose property