Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!mitel!sce!cognos!alzabo!tris
From: tris@alzabo.uucp (Tris Orendorff)
Newsgroups: comp.graphics
Subject: Re: VGA Graphics
Message-ID: <1989Sep27.124145.29732@alzabo.uucp>
Date: 27 Sep 89 12:41:45 GMT
References: <216@uwm.edu>
Lines: 33

jrn@csd4.csd.uwm.edu (James Ray Norton) writes:


>Hi,

>I have a slight problem....

>I am trying to write a program using Turbo Pascal Version 5.  This program is
>supposed to save a graphics image (VGA 640 x 480) to the disk and later reload
>the image back to the display...

>I have written a routine that will save the image (tested it by putting the
>image back on the screen)...However my routine to load the image file to
>the screen will not work...

    The VGA video buffer in VGA 640 x 480 is arranged as four bitplanes.
You will have to read the video buffer four times, taking one plane at a time.

    I suggest that you get the following book:
	Programmer's Guide to PC and PS/2 Video Systems
	Richard Wilton
	Microsoft Press
	ISBN 1-55615-103-9

   Another alternative is to use a screen capture program to save your image
in one of the normal formats (PCX, PIC, LBM, GIF).


-- 
				Sincerely Yours
				Tris Orendorff

.......................................................................