ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions / Types of variables
  • Properties specific to 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 changed 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 Polygon variables

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

WLanguage functions that use the Polygon type

dPolygonDraws a polygon:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
dPolylineDraws a line composed of multiple segments.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/27/2023

Send a report | Local help