Available in the LEADTOOLS Imaging toolkit. |
CurveX property (Main Control)
Visual
Basic example
Visual
C++ 4.0 example
Syntax float CurveX (long iIndex);
Overview: Refer to Creating and Using a Bitmap Region
Remarks
An array of float values that represent the X coordinates for the points that define the curve.
This property is used by both the SetRgnCurve method and the CurveToBezier method.
The position is relative to the LEAD bitmap in memory. The unit of measure is determined by the ScaleMode property.
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:
CurveX property
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: CurveY property, SetRgnCurve method, CurveSize property, CurveToBezier method, CurveTension property, CurveClose property, CurveType property