GfxRectangle
- draw a rectangle

Low-level graphics
(AmiBroker 50)


SYNTAX GfxRectangle( x1, y1, x2, y2 )
RETURNS NOTHING
FUNCTION Draws a rectangle 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
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 GfxRectangle( 10, 10, 30, 30 )
SEE ALSO GfxSelectPen() function , GfxSelectSolidBrush() function

References:

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

More information:

See updated/extended version on-line.