Call Box Commands
Version 2.0 15 Jan-90


CALL RR the ROUNDED RECTANGLE commands

There are 5 commands that draw Rounded Rectangles. The Rounded Rectangles are drawn with the pen in the current port.

Note: Any command that draws something, draws to a graphics port. You must make sure that the port you want to draw in is the current port before drawing to it. Because you are drawing to a port and not necessarily the screen, the coordinates used to draw are in a coordinate system unique to the port you have selected. This coordinate system is Called LOCAL. GLOBAL coordinates on the other hand refer to the screen coordinates... or the current cursor position. If you choose to draw to the screen then the LOCAL coordinates will equal the GLOBAL coordinates.


COMMAND FUNCTION DESCRIPTION
CALL RR,O,X,Y,W,H,OW,OH FRAME RRECTANGLE: draws a rrectangle outline in the current pen color.
CALL RR,1,X,Y,W,H,OW,OH PAINT RRECT ANGLE: draws a rrectangle and fills it with the current pen color.
CALL RR,2,X,Y,W,H,OW,OH ERASE RRECTANGLE: draws a rrectangle and fills it with color 0.
CALL RR,3,X,Y,W,H,OW,OH INVERT RRECTANGLE: draws a rrectangle and inverts the pixels colors.
CALL RR,4,X,Y,W,H,OW,OH,P FILL RRECTANGLE: draws a rrectangle and fills it with the current pen pattern.


X
Left edge of the rrectangle in LOCAL coordinates.

Y
Top edge of the rrectangle in LOCAL coordinates.

W
Width of the rrectangle in pixels.

H
Height of the rrectangle in pixels.

OW
Corner oval width in pixels

OH
Corner oval height in pixels

P
Pattern used to fill rrectangle (0-15)


Figure 2.13
Figure 2.13 Rounded Rectangle construction