PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of Polygon variables
  • WLanguage functions that use the Polygon type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Polygon (Type of variable)
In french: Polygone
The Polygon type is used to define the points of a polygon. These points are ordered and connected in the defined order.
The characteristics of this polygon can be defined and modified using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
polTriangle is Polygon
oPoint is Point
oPoint.X = 460
oPoint.Y = 10
Add(polTriangle.Point, oPoint)
oPoint.X = 500
oPoint.Y = 80
Add(polTriangle.Point, oPoint)
oPoint.X = 420
oPoint.Y = 80
Add(polTriangle.Point, [oPoint.X, oPoint.Y])
dPolygon(polTriangle, PastelBlue, LightGreen)
 
 
polRectangle is Polygon
polRectangle.Point = [[420,90], [500,90], [500,150], [420,150]]
dPolygon(polRectangle, DarkBrown)
Remarks

Properties specific to the description of Polygon variables

The following properties can be used to manipulate a polygon:
Property nameType usedEffect
PointArray of Point variablesPolygon points.

WLanguage functions that use the Polygon type

Versions 09 and later
dPolygon
New in version 09
dPolygon
dPolygon
Draws a polygon:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 24 and later
dPolyline
New in version 24
dPolyline
dPolyline
Draws a line composed of several segments.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment