Box

Syntax:

    Box(LineX1,LineY1, LineX2, LineY2 [, LineColour ] )

Explanation:

Draws a box (unfilled rectangle) on a graphic LCD from the upper corner at pixel position LineX1, LineY1 to pixel position LineX2, LineY2.

LineColour can be specified. Typically the value is 0 or 1, corresponding to GLCDBackground and GLCDForeground respectively.

Example:

    #include <glcd.h>

    Box(10, 10, 100, 50)          ' <<< the Box instruction

Key line: Box(10, 10, 100, 50) — draws an unfilled rectangle from pixel (10,10) to pixel (100,50) using the current foreground colour.

See Also: