CPolygon:Rect


The Rect method creates a rectangle polygon. To create a square, specify only the width.

Syntax

CPolygon:Rect( nWidth )

CPolygon:Rect( nWidth, nHeight )

where

    nWidth is the width of the rectangle

    nHeight is the height of the rectangle. If omitted, the polygon is a square.

Related Topics

Circle

Ellipse

CPolygon class