Article View: comp.lang.postscript
Article #2984Re: Display PostScript graphics questions
From: Christopher A. Kent
Date: Sat, 01 Sep 1990 20:12
Date: Sat, 01 Sep 1990 20:12
20 lines
1602 bytes
1602 bytes
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@decwrl.dec.com decwrl!kent (415) 853-6639
Technical Details
Message-ID:
<1990Sep1.201254.3107@wrl.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!haven!decuac!shlump.nac.dec.com!rust.zso.dec.com!bacchus.pa.dec.com!decwrl!kentReferences:
<1990Aug31.182514.28517@ibmpcug.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!haven!decuac!shlump.nac.dec.com!rust.zso.dec.com!bacchus.pa.dec.com!decwrl!kent From: kent@decwrl.dec.com (Christopher A. Kent) Newsgroups: comp.lang.postscript,comp.unix.aix,connect.audit Subject: Re: Display PostScript graphics questions Keywords: PostScript,AIX,X Message-ID: <1990Sep1.201254.3107@wrl.dec.com> Date: 1 Sep 90 20:12:54 GMT References: <1990Aug31.182514.28517@ibmpcug.co.uk> Sender: news@wrl.dec.com (News) Organization: DEC Western Software Laboratory Lines: 20