All Manuals > CAPI User Guide > 13 Graphics Ports > 13.4 Drawing functions

NextPrevUpTopContentsIndex

13.4.3 Simple shapes

You can draw ellipses and polygons with the functions draw-ellipse , draw-rectangle , draw-rectangles , draw-polygon and draw-polygons .

You can specify whether a shape is drawn in outline or is filled (with the graphics state foreground color) by the argument filled .

For example, to clear a rectangular region of an output pane, do

(draw-rectangle pane
 x
 y
 width
 height
                :filled t
                :foreground color
                :compositing-mode :copy
                :shape-mode :plain)

:compositing-mode :copy is needed only when the color has alpha, and :foreground color is needed only if it is different from the foreground in pane 's graphics state.


CAPI User Guide (Macintosh version) - 30 Aug 2011

NextPrevUpTopContentsIndex