Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!umriscc!mcs213f.cs.umr.edu!mcastle From: mcastle@mcs213f.cs.umr.edu (Mike Castle {Nexus}) Newsgroups: comp.lang.pascal Subject: Re: Storing screen image for quick display Message-ID: <2015@umriscc.isc.umr.edu> Date: 23 Jan 91 03:43:21 GMT References: <8416@hub.ucsb.edu> Sender: news@umriscc.isc.umr.edu Distribution: comp Organization: University of Missouri - Rolla Lines: 21 In article <8416@hub.ucsb.edu> 6500boo@ucsbuxa.ucsb.edu (William Bushing) writes: >I tried using arrays to store the pixel values in a [512,512] >array (too large for TP 5.5) and a series of four [512,128] >arrays. No luck. What data structure should I use to store the >image and then quickly recall it? If it involves pointers, I >don't feel comfortable with them. Can I use my computer's RAM >to store the pixel values in a contiguous set of memory addresses >and then retrieve the values? Try GetImage/PutImage along with ImageSize. Good examples on how to use these in the manual (and since using 5.5, in online help as well). The only thing you might have problems with it changing the palette. I'm not sure in what format it's saved in with GetImage, but my guess would be the entry to the color map, rather than the RGB values themselves. So, you might want to save and restore the current palette as well as the bit image. -- Mike Castle (Nexus) S087891@UMRVMA.UMR.EDU (preferred) | ERROR: Invalid mcastle@mcs213k.cs.umr.edu (unix mail-YEACH!)| command 'HELP' Life is like a clock: You can work constantly, and be right | try 'HELP' all the time, or not work at all, and be right twice a day. |