home *** CD-ROM | disk | FTP | other *** search
-
- Documentation For The Show_BMP Unit.
- Compiled March 23, 1993.
- Written By Mike Stone.
-
- The author hereby disclaims all warranties relating to this software,
- whether expressed or implied, including without limitation any
- implied warranties or merchantability or fitness for a particular
- purpose. I will not be liable for any special, incidental, consequential,
- indirect, or similar damages due to loss of data/damage to hardware or
- any other reason, even if I have been advised of the possibility of
- such damages.
-
- Moving right along.. this software is released as freeware and you
- are welcome to distribute it to anyone and everyone, and to use it in
- your own programs. (And don't worry about annoying "Please Register Me"
- messages in the .tpu).
-
- All the unit does is display 64768 byte bitmapped files in
- 320x200x256c mode. I was messing around with bitmaps and had this code
- around so I thought i'd release it after I saw some messages about
- people trying to display bitmaps. Its nothing monumental but it works and
- does so fairly fast. Although you won't get the compression you have in
- gif's and pcx's, binary's are faster on the display and are much easier to
- manipulate. There are two procedures you can all with show_bmp -
-
- 1) SetVideoMode (mode:byte);
- 2) ShowBmp (BitmapToBeShown:string);
-
- I included the SetVideomode procedure just in case you don't know how to
- change the video mode to $13 (320x200x256c). Then all you have to do
- once you have the correct mode, is call Showbmp with the filename of
- the bitmapped you want displayed. So:
-
- SetVideoMode($13);
- ShowBmp('Example.bin'); {Call ShowBmp with the name of the Bmp to show}
- Textmode(co80); {Don't forget this when ending your program!}
-
- Don't try initiating the .bgi drivers and calling ShowBmp! ShowBmp will
- probably work with other resolutions other than 320x200, but you'll get a
- smaller picture or really screw things up (so do it at your own risk!).
- Now about the actual data files used. They MUST be 64768 bytes long, and
- no error checking is made (neither is there any error checking when setting
- the video mode to see if the users adapter can handle that mode). I came
- across three utilities that can help in making the needed .bin files.
- First there is the grab.exe utility that comes with Anivga11.zip.Although
- it makes two files they can easily be combined, HOWEVER it seems that the
- images they "grab" are sixteen copies of the picture captured (if you
- understand what I mean), so although it makes for a nice special effect,
- it isn't very useful (thought i'd mention it though in case someone tried
- using it). Oh, and also it has a 3 byte .pic header, so that will really
- mess things up.
- Second I have heard of another grab.exe that makes .bin files (not .pic)
- and that should work fine from what I know of it (although I have never
- used it myself).
- The third program is called intro.exe and I am not sure where it came
- from but it works ideally.
-
- Anyhow, thats about it. I hope you find the unit useful and I might
- do a couple upgrades to make it display bmp's in any resolution, and add
- error checking. Working with bmp's isn't difficult at all so I also hope
- that someone else does it first, so I don't have to ;)
-
- Btw.. the unit was written in Turbo Pascal 6.0 and Assembly and it
- may not display properly on all VGA cards.
-