Question 19.10

How can I do graphics?


Once upon a time, Unix had a fairly nice little set of device-independent plot routines described in plot(3) and plot(5), but they've largely fallen into disuse.

If you're programming for MS-DOS, you'll probably want to use libraries conforming to the VESA or BGI standards.

If you're trying to talk to a particular plotter, making it draw is usually a matter of sending it the appropriate escape sequences; see also question 19.9. The vendor may supply a C-callable library, or you may be able to find one on the net.

If you're programming for a particular window system (Macintosh, X windows, Microsoft Windows), you will use its facilities; see the relevant documentation or newsgroup or FAQ list.

References: PCS Sec. 5.4 pp. 75-77


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback