The deprecated function clear-rectangle
draws the rectangle specified by
x
,
y
,
width
, and
height
in
port
's background color. All other graphics-state parameters are ignored.
clear-rectangle
is deprecated because it ignores the graphics state args, which means it does not work properly with other drawing functions. In particular, it does not work properly in the
display-callback
of output-pane.
(draw-rectangle pane x y width height
:filled t
:foreground color
:compositing-mode :copy
:shape-mode :plain)
compositing-mode is needed only when the color has alpha.
foreground is needed only if it is different from the foreground in the graphics state.
Note that draw-rectangle does take into account the transformation in the graphics-state.
CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015