GfxRoundRect
- draw a rectangle with rounded corners

Low-level graphics
(AmiBroker 50)


SYNTAX GfxRoundRect( x1, y1, x2, y2, x3, y3 )
RETURNS NOTHING
FUNCTION Draws a rectangle with rounded corners using the current pen. The interior of the rectangle is filled using the current brush.

Parameters

  • x1 - x-coordinate of the upper left corner of the rectangle
  • y1 - y-coordinate of the upper left corner of the rectangle
  • x2 - x-coordinate of the lower right corner of the rectangle
  • y2 - y-coordinate of the lower right corner of the rectangle
  • x3 - the width of the ellipse used to draw the rounded corners
  • y3 - the height of the ellipse used to draw the rounded corners
The rectangle extends up to, but does not include, the right and bottom coordinates. This means that the height of the rectangle is y2 - y1 and the width of the rectangle is x2 - x1. Both the width and the height of a rectangle must be greater than 2 and less than 32767.

NOTE: This is LOW-LEVEL graphic function. To learn more about low-level graphic functions please read TUTORIAL: Using low-level graphics.

EXAMPLE GfxRoundRect( 10, 10, 100, 100, 15, 15 );
SEE ALSO GfxRectangle() function , GfxSelectPen() function , GfxSelectSolidBrush() function

References:

The GfxRoundRect function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.