C H A P T E R 1 3
Drawing and Graphics
About Drawing
13-5
A rounded rectangle is a rectangle with rounded corners. The figure is defined by
the rectangle itself, along with the width and height of the ovals forming the
corners (called the diameters of curvature), as shown in Figure 13-5. The corner
width and corner height are limited to the width and height of the rectangle itself; if
they are larger, the rounded rectangle becomes an oval.
Figure 13-5
A rounded rectangle
A polygon is defined by a sequence of points representing the polygon's vertices,
connected by straight lines from one point to the next. You define a polygon by
specifying an array of x and y locations in which to draw lines and passing it as a
parameter to
MakePolygon
. Figure 13-6 shows an example of a polygon.
Bounding
rectangle
Rounded
rectangle
Diameter
of curvature
Diameter
of curvature