Next Previous Up Top Contents Index

6 DUIM-Graphics Library

6.5 Drawing using path related functions

A number of functions are provided that let you perform a number of connected drawing operations by encapsulating all the operations as a single path, rendering the graphic itself only when the whole path has been defined explicitly. You can use these functions by following the general procedure below:

1. Create a new path using start-path.
2. Define the appearance of the path using any combination of line-to, move-to, curve-to, and arc-to.
3. Optionally, use close-path to create a closed path from the segments defined in step 2 above.
4. End the current path definition using end-path (if you have not already used close-path).
5. Render the outline of the path to the drawable object using stroke-path.
6. If the path you created is closed, flood fill the path using fill-path.

Each of these functions is described in a little more in the following sections. For full details about each individual function, refer to its full reference entry in Section 6.6.

6.5.1 - Functions for controlling the definition of a path
6.5.2 - Functions for describing the appearance of a path

Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index