home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / EGA / EGASAVE.ZIP / EGATEST.DOC < prev    next >
Encoding:
Text File  |  1988-01-10  |  1.3 KB  |  39 lines

  1.      MSC v5.0 comes with a graphics library that is very nice, but does
  2.      not support the saving of the EGA screen.  Because of that I have
  3.      written a fast and not very fancy program to save and retrieve the
  4.      EGA 640X350 16 color page 1 screen.  Please see the C code for the
  5.      routines for details.  The routines were written for the small
  6.      model, but they can be easily changed for the other models.  If you
  7.      are using a model with a large data area, then the routines become
  8.      simple because you can read and write directly to the video memory
  9.      without any difficultly.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.      get_screen(filename);    returns integer indicating error status
  16.      save_screen(filename);   as above
  17.  
  18.      See the C code for more details on the routines.
  19.  
  20.      To compile test program using MSC 5.0:
  21.  
  22.      cl  testega.c gtscreen.c svscreen.c
  23.  
  24.  
  25.  
  26.      Testega puts two colored squares on EGA 350x640 screen, saves
  27.      screen to file and retrieves it.
  28.  
  29.      EGA screens take about 128K of disk space, so be ready.
  30.  
  31.      There is no checking of hardware, EGA with 128K assumed.
  32.      There is no checking of EGA page, Page 1 is saved and retrieved.
  33.      There is no packing of screen image, working on that.  
  34.  
  35.  
  36.      January 9, 1988
  37.      R W Simpson 
  38.      937-2235 (home)
  39.      932-5290 (work)