TLazRegion.AddPolygon procedure
Adds a polygonal area with the specified vertices to the region.
Declaration
procedure AddPolygon(var APoints: TPointArray;
AFillMode: TLazRegionFillMode)Arguments
APoints | Array of TPoint instances representing the vertices for the polygon. |
AFillMode | TLazRegionFillMode value used for the polygon. |
Description
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.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
