PolygonY property (ILEADRaster)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

float PolygonY (short iIndex);

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Specifies the Y coordinate of a vertex a polygonal region.

The position is relative to the LEAD bitmap in memory. The unit of measure is determined by the ScaleMode property.

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 following indexed properties:

image\sqrblit.gif PolygonX property

image\sqrblit.gif PolygonY property

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

Note: LEADTOOLS does not update these properties when LEADTOOLS transforms the region. For example, if you create a region and then rotate the image, LEADTOOLS automatically rotates the region; however, the values of the aforementioned properties are not updated. This behavior is by design.

See Also

Topics:

Raster Images: Creating and Using a Region