🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #241

Re: Saving graphics into a file.

#241
From: Ed McCreary
Date: Wed, 08 Apr 1992 19:44
28 lines
1949 bytes
In article <1992Apr8.030549.1944@a.cs.okstate.edu> arra@a.cs.okstate.edu (ARRA SHRAVAN KUMAR) writes:
>Dear Netters,
>
>	How do you save into a file some bitmaps? That is , if the user
>draws a series of graphical objects on the screen, how to save this work
>and retrieve when needed?
>Please help me. Thanks a lot in advance.
>

That depends upon how much information you want stored and what programs need
to retrieve it later.  If you want to store an image, the DIB format is
fairly simple and easy to implement.  All of the programs I've
seen which deal with images can utilize this format.  They are the
ones save to your disk with the .bmp extension.

Now, if you are writing an application along the lines of MacDraw, or
something that deals with objects, you may consider defining own format
for saving them.  For instance, if you have a graphics screen full
of squares and circles, you may want to save the end points and color
of the square and the radius, center, and color of the circle.  That
way you could move them around later if you wish.  If you go this
route I'd also include the option of saving the image as a DIBitmap,
since it's so wildly used.

--
McCreary@sword.eng.hou.compaq.com     Computers are like Old Testament gods;
Me? Speak for Compaq?  Yeah, right.   lots of rules and no mercy.
                                                             Joseph Campbell
Technical Details
Message-ID: <1992Apr8.194449.6398@twisto.eng.hou.compaq.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary
References: <1992Apr8.030549.1944@a.cs.okstate.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: Saving graphics into a file.
Message-ID: <1992Apr8.194449.6398@twisto.eng.hou.compaq.com>
Sender: news@twisto.eng.hou.compaq.com (Netnews Account)
Organization: Compaq Computer Corp.
References: <1992Apr8.030549.1944@a.cs.okstate.edu>
Distribution: usa
Date: Wed, 8 Apr 1992 19:44:49 GMT
Lines: 28