[Overview][Types][Classes][Procedures and functions][Index] |
Adds a polygonal area with the specified vertices to the region.
Source position: lazregions.pas line 81
public procedure TLazRegion.AddPolygon( |
var APoints: TPointArray; |
AFillMode: TLazRegionFillMode |
); |
APoints |
|
Array of TPoint instances representing the vertices for the polygon. |
AFillMode |
|
TLazRegionFillMode value used for the polygon. |
AddPolygon is a procedure used to add a polygonal area with the specified vertices to the region. APoints is an array with TPoint instances that define each of the vertices for the polygon. AFillMode is a TLazRegionFillMode value that defines the fill mode for the polygonal area.
AddPolygon creates a TLazRegionPolygon instance that is used to store the area definition in the Parts member. The arguments to the method are assigned to the Points and FillMode members in the new class instance. AddPolygon calls AddPart to store the new TLazRegionPolygon instance in Parts.
|
Adds the specified part as a subregion in the Parts member. |
|
|
Represents a region defined as a series of vertices for a polygon. |
|
|
Array of TPoint values that define the vertices for the polygonal region. |
|
|
Fill mode used for the polygon. |
|
|
Defines an array type used for TPoint values. |
|
|
Represents region fill modes used for polygons in Lazarus regions. |
|
Version 4.0 | Generated 2025-05-03 | Home |