CurveTension property (Main Control)
Builder Syntax |
double CurveTension; |
Delphi Syntax |
CurveTension: L_DOUBLE; |
Overview |
Refer to Creating and Using a Bitmap Region |
Remarks
Indicates the "straightness" of the curves that connect points.
This property is used only when CurveType
property is CURVE_STANDARD. Valid values are between 0.0 and 1.0,
where 0.0 indicates straight lines, and 1.0 indicates lines with the highest
curvature. A typical value is 0.5.
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:
CurveTension property
Then call the SetRgnCurve method to add the region to the bitmap.
See Also
Elements: |
CurveX property, CurveY property, SetRgnCurve method, CurveSize property, CurveToBezier method, CurveType property, CurveClose property |
Topics: |