Article View: rec.games.programmer
Article #522Image saving in MSC7.0
From: Brian Troxell
Date: Sat, 08 Aug 1992 23:22
Date: Sat, 08 Aug 1992 23:22
25 lines
1397 bytes
1397 bytes
I am attempting to write my first graphics game, so forgive me if
this is a simple question.
I am using Microsoft C 7.0 on a 386SX. The basic thing I want to do is
to use getimage and putimage to move images around. The images are small
(20 pels by 20 pels), so speed is not a problem. However, I don't want
to create the images and then use getimage to get it. I would like to save
the image to a hard drive, then just read it in and putimage it on the
screen.
Any ideas on how to do this?
I tried the simple approach: usr fopen and fwrite and write out the data
stored by a pointer defined in a getimage call, then use fread and putimage
on the file. Putimage returns 0, but nothing gets displayed.
Any help, pointers, references, etc. would be greatly appreciated.
Thanks.
--
|~~\ rian 2000 Powers Fy Rd. | "I have no idea. What's it supposed
|--< _____ Suite 200 | to be?"
|__/ | Marietta, Ga 30067 | "A whinzer."
| roxell (404)933-7600 | "A _whinzer_?!"
Technical Details
Message-ID:
<485@audfax.audiofax.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!emory!audfax!brianShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!emory!audfax!brian From: brian@audiofax.com (Brian Troxell) Newsgroups: rec.games.programmer,comp.os.msdos.programmer Subject: Image saving in MSC7.0 Message-ID: <485@audfax.audiofax.com> Date: 8 Aug 92 23:22:43 GMT Followup-To: rec.games.programmer Distribution: na Organization: AudioFAX Inc., Atlanta Lines: 25