PolygonSize property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

Cardinal PolygonSize

Delphi Syntax

PolygonSize: Cardinal

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Specifies the size of the array used to store the vertices when creating a polygonal region.

To create a polygonal region, you must first build an ordered array of points for the vertices of the polygon; then create the region based on the array. The PolygonSize property specifies the size of the array. You can either specify a large array to start with, or you can increase the size of the array when necessary (without losing the existing points). For each vertex, you update the array by setting the indexed PolygonPoint property.

You can then call the SetRgnPolygon method to add the region to the bitmap.

See Also

Elements:

SetRgnEllipse method, SetRgnRect method, SetRgnRoundRect method, SetRgnColor method, OffsetRgn method

Topics:

Raster Images: Creating and Using a Region