background image
C H A P T E R 1 3
Drawing and Graphics
About Drawing
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
. Figure 13-6 shows an example of a polygon.
of curvature
of curvature
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна