CurveY property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int CurveY [int iIndex];

Delphi Syntax

CurveY [iIndex: Integer] Longint;

Overview

Refer to Creating and Using a Bitmap Region

Remarks

An array of float values that represent the Y 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.

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:

image\sqrblit.gif CurveX property

image\sqrblit.gif CurveY property

and define the characteristics of the curve by setting the following properties:

image\sqrblit.gif CurveType property

image\sqrblit.gif CurveTension property

image\sqrblit.gif CurveClose property

Then call the SetRgnCurve method to add the region to the bitmap.

See Also

Elements:

CurveX property, SetRgnCurve method, CurveSize property, CurveToBezier method, CurveTension property, CurveClose property, CurveType property

Topics:

Raster Images: Creating and Using a Region