Path: utzoo!utgpu!jarvis.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!maccs!howard From: howard@maccs.dcss.mcmaster.ca (Howard Betel) Newsgroups: comp.lang.pascal Subject: 256 colour mode in TP5.0 Message-ID: <25F744E5.8753@maccs.dcss.mcmaster.ca> Date: 9 Mar 90 05:53:41 GMT Reply-To: howard@maccs.dcss.mcmaster.ca (Howard Betel) Organization: McMaster University, Hamilton, Ontario Lines: 22 Here's the problem. I'm initializing my VGA to 256 (320x200) colors using Borland's bgi. I'm displaying a GIF by shelling out and executing a GIF viewing program. I modified the program slightly so that on completion it doesn't clear the screen. When the program terminates, TP uses a getimage to grab the screen. I then write the memory block out to disk using blockwrite. So far so good. Here's the problem (really this time). When I load the picture back in again using blockread and then display it on the screen using putimage, my palette is obviously not the same as it was after termination of the GIF viewing program (it must set the palette). So how can I save a 256 color palette along with the picture so that I can load it in again at a later time. Excuse the run on sentences but its been a looong day. Thanks for any help that you can give, -- Howard Betel Howard@maccs.dcss.McMaster.CA Dept of Computer Science ...!unet!utai!utgpu!maccs!howard McMaster University