Path: utzoo!utgpu!water!watmath!clyde!att-cb!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!apollo!oj From: oj@apollo.uucp (Ellis Oliver Jones) Newsgroups: comp.sys.apollo Subject: Re: Need Help with gpr_$open_bitmap_file Summary: open the file, then use gpr_$pixel_blt Message-ID: <3b7b91e1.d5b2@apollo.uucp> Date: 15 Apr 88 20:48:00 GMT References: <880412.034912z.10599.srt@maui.cs.ucla.edu> Reply-To: oj@apollo.UUCP (Ellis Oliver Jones) Organization: Apollo Computer, Chelmsford, MA Lines: 24 In article <880412.034912z.10599.srt@maui.cs.ucla.edu> srt@CS.UCLA.EDU (Scott Turner) writes: >Anyone know how to use this godforsaken call to write a bitmap out to >a file and then restore it? Well, it doesn't "write a bitmap out to a file," but rather creates a permanent bitmap---one that lives in a file. If you want to save a pre-existing bitmap you should (a) create and open the bitmap file with gpr_$open_bitmap_file and (b) use gpr_$pixel_blt to copy the bits from your pre-existing bitmap into the new one. Incidentally, you can save the *entire* screen into a bitmap file using /com/cpcsr . Does this help? >Incidentally, another fine example of Apollo documentation. The GPR docs I have are labelled June 1987, and their writer did quite a lot of work a year a ago to improve them. In particular, GPR_$OPEN_BITMAP_FILE is described in quite a bit of detail. Do you have the latest docs? /Ollie Jones (Speaking for myself, not necessarily for Apollo Computer, Inc.)