Display PostScript graphics questions

Christopher A. Kent kent at decwrl.dec.com
Sun Sep 2 06:12:54 AEST 1990


If you're doing any sort of color work, you probably don't want to
use XOR for what you're doing. The most straightforward thing to do
is do all your painting into a pixmap, not into the DrawingArea
widget. The use XCOpyArea to copy the pixmap (probably just the
affected area) to the window. You can keep as many generations
of pixmap as you want (or as the server lets you). Having a
backing pixmap also makes exposure handling very easy. (Using
backing store is an alternative, but I don't know if the IBM
server provides it.)

To get a text copy of the output to your context, create a text context.
That's what they're for. Depending on how your program is set up,
either just re-traverse your database, generating DPS calls into
the text context, or chain a text context to your drawing context
and capture the PS as you go.

chris

Chris Kent	Western Software Laboratory	Digital Equipment Corporation
kent at decwrl.dec.com	decwrl!kent			(415) 853-6639



More information about the Comp.unix.aix mailing list