CurveType property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax long CurveType

Overview:  Refer to Creating and Using a Bitmap Region

Remarks

Indicates the type of curve defined by the array of points specified in the CurveX property and the CurveY property. Possible values are:

Value

Meaning

CURVE_BEZIER

The points specified in the CurveX and CurveY properties define a Bezier curve.

CURVE_STANDARD

The points specified in the CurveX and CurveY properties define a standard curve.

This property must be set to CURVE_STANDARD to use the CurveX and CurveY arrays with the CurveToBezier method.

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, CurveSize property, CurveToBezier method, CurveTension property, CurveClose property

Topics:  Raster Images: Creating and Using a Region