SetRgnCurve method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int __fastcall SetRgnCurve (int iFillMode, int iCombineMode);

Delphi Syntax

Function SetRgnCurve (iFillMode: Integer; iCombineMode: Integer): Integer;

Overview

Refer to Creating and Using a Bitmap Region

Remarks

Creates or updates the bitmap region by adding a curved region.

This method can draw two types of curves: a smooth curve that goes through all of the points, or a series of Bezier curves that use the points as control points. The type of curve drawn is determined by the CurveType property. The points are contained int the CurveX property and the CurveY 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:

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, CurveY property, CurveSize property, CurveToBezier method, CurveTension property, CurveClose property, CurveType property, SetRgnEllipse method, SetRgnRect method, SetRgnRoundRect method, SetRgnColor method, OffsetRgn method

Topics:

Raster Images: Creating and Using a Region