The section describes the various shapes and so on that you can draw with graphics ports, and lists the relevant drawing functions. The graphics state foreground parameter is used for the drawing color.
All drawing functions must be called in the same process as the pane. You will need to arrange for that explicitly in contexts other than callbacks on that pane. To call a function explicitly in the pane's process, use apply-in-pane-process, apply-in-pane-process-if-alive, execute-with-interface or execute-with-interface-if-alive.
Note: Unlike images, the foreground and background colors used when drawing shapes described in this section are not pre-multiplied. Displaying images is described in Working with images.
Note: The full set of graphics state parameters is described under graphics-state.
To control the font used, see Portable font descriptions.
:copy is needed only when the color has alpha, and
is needed only if it is different from the
You can draw a path with the function draw-path.
CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017