Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!dptg!att!chinet!patrickd From: patrickd@chinet.chi.il.us (Patrick Deupree) Newsgroups: comp.windows.ms Subject: Re: Saving Bitmaps Message-ID: <9163@chinet.chi.il.us> Date: 4 Aug 89 13:48:07 GMT References: <30368@ucbvax.BERKELEY.EDU> Reply-To: patrickd@chinet.chi.il.us (Patrick Deupree) Distribution: usa Organization: The Whitewater Group, Evanston IL Lines: 18 In article <30368@ucbvax.BERKELEY.EDU> kipnis@janus.berkeley.edu (Gary Kipnis) writes: > > Hi, I am working on a program that uses a big color bitmap, I would like > to save this bitmap when my application is iconified so that I can free > up the memory, how would I go about dumping a bitmap to a disk and then > reading it from a disk Since all a bitmap is is a structure that contains fields of header information plus an array of binary data (in the case of my program in Actor I used a Struct) it's really pretty easy. All you'd have to do is create a file and store your header info first, then store the binary data. Doing this is just a matter of normal file IO routines. -- "I place my faith in fools. Self confidence, my friends call it." -Edgar Allen Poe Patrick Deupree -> patrickd@chinet.chi.il.us