DR End polygon

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR End polygon (area) Longint

ParameterTypeDescription
areaLongint4D Draw area
Function resultLongintObject ID

Description

The command DR End polygon completes the polygon in area and returns the object's ID. The new polygon is created with the default line and fill attributes.

Example

The following example creates a complex polygon centered two units down and two units to the right of the upper left corner of the page.

   DR START POLYGON (Area)
   DR SET ORIGIN (Area;2;2;0)
   For ($i;1;51)
      DR POLYGON LINE (Area;Sin($i);Cos($i);0)
   End for
   $ID := DR End polygon (Area)

See Also

DR POLYGON LINE, DR START POLYGON.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next