Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!mcsun!ukc!dcl-cs!gdt!ccsnad From: ccsnad@gdr.bath.ac.uk (Neil A. Drage) Newsgroups: comp.lang.pascal Subject: Writing Images to Disk in TP 5.0 Message-ID: <1991Feb1.103512.8094@gdr.bath.ac.uk> Date: 1 Feb 91 10:35:12 GMT Organization: Bath University Computing Services, UK Lines: 36 Hi there, I am looking for a way of saving images captured by GETIMAGE to disk on a VGA system. I actually managed to do this once in a program I wrote a couple of years ago for a CGA display but really it was just a kludge. Doing this: write(fil,grafic^); should, I would have thought, write the image stored in grafic to the file 'fil'. But when I try to read it using the correspond READ command the image produced seems to be random noise. By the way the kludge I made involved creating an array of bytes large enough to hold the image, assign a pointer to the array and use this to hold the image. When I want to save the image I write the array to the disk. I am currently using Turbo Pascal 5.0, but am going to be upgrading to version 6.0 very soon. So solutions for either version would be very welcome. Thanks, as they say, in advance. ------------------------------------------------------------------------------ "I'm stirred and no longer free, like a fly in a cup of tee." (The Damned) ============================================================================== Neil A Drage JANET: N.A.Drage@UK.AC.BATH University of Bath UUCP: ...!mcsun!ukc!bath!N.A.Drage Bath, BA2 7AY EARN/BITNET: N.A.Drage%uk.ac.bath@UKACRL England INTERNET: N.A.Drage%bath.ac.uk@nsfnet-relay.ac.uk ===============================================================================