cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/14/18:24:10

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: BITMAP in Allegro
Date: Sun, 14 Sep 1997 15:33:10 +0100
Organization: None
Distribution: world
Message-ID: <aKylGzBmW$G0EwqP@talula.demon.co.uk>
References: <5vfeda$fa9$1 AT news DOT interlog DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gautam N. Lad writes:
>I don't know if this is already in Allegro's DOC, but here goes.
>I want to write something onto 'screen', but before I do, I want to
>save the portion of the screen that will be overwritten.  

Create a memory bitmap to store the image you need to save, and use
blit() to copy data between it and the screen. You can use that to copy
any rectangular region you like, so you can save the background and then
blit it back again when you are done.


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019