Important: The information in this document is obsolete and should not be used for new development.
PaintRoundRect
To paint a rounded rectangle with the graphics pen's pattern and pattern mode, use thePaintRoundRect
procedure.
PROCEDURE PaintRoundRect (r:\xDDRect; ovalWidth,ovalHeight: Integer);
r
- The rectangle that defines the rounded rectangle's boundaries.
ovalWidth
- The width of the oval defining the rounded corner.
ovalHeight
The height of the oval defining the rounded corner.DESCRIPTION
Using the pattern and pattern mode of the graphics pen for the current graphics port, thePaintRoundRect
procedure draws the interior of the rounded rectangle bounded by the rectangle that you specify in ther
parameter. Use theovalWidth
andovalHeight
parameters to specify the diameters of curvature for the corners of the rounded rectangle.The pen location does not change.
SPECIAL CONSIDERATIONS
ThePaintRoundRect
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.SEE ALSO
You can use theFillRoundRect
procedure, described next, to draw the interior of a rounded rectangle with a pen pattern different from that for the current graphics port.