DrawPolygon

Draws a polygon

DrawPolygon <count>, <x()>, <y()>, <imageNo>[, <unitNo>]

Parameters
<count>
The number of vertexes of the polygon to be drawn
<x()>
X coordinates of the polygon each top
<y()>
Y coordinates of the polygon each top
<imageNo>
Image number
<unitNo>
Processing unit number

Return Value
None.

Description
Draws a polygon at the specified position in the Image Display window.
It draws the figure at the position corresponding to the state of the image scrolling specified by the image number and coordinates specified by the argument.
It makes an error(Illegal function call) when performing it not in the *MeasureDispG subroutine.
Refer to the explanation of [the DrawPoint command|DrawPoint.html]] for the method of specifying the drawing coordinates.
The top number of the polygon is specified in argument<count>.
Processing unit number is specified by the argument <unitNo>, image number is specified by the argument <imageNo>.
X/Y coordinates of the polygon each top is specified by the argument <x()>/<y()>. It saves as real type or integer type array variable, do not specify it with the number of element like X&() but like () only with the type.

Notes