www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/31/09:28:20

Date: Sun, 30 Mar 1997 10:48:48 -0600 (CST)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: Carlos Costa Portela <c DOT c DOT portela AT ieee DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: Capturing a screen from Allegro.
In-Reply-To: <333d5429.0@news.ctv.es>
Message-ID: <Pine.SUN.3.95.970330104706.1865A-100000@bert.eecs.uic.edu>
MIME-Version: 1.0

It is in the allegro data file section:
BITMAP bmp;
PALLETE pal;
get_pallete(pal);
bmp = create_sub_bitmap(screen, 0, 0, SCREEN_W, SCREEN_H);
save_pcx("dump.pcx", bmp, pal);
destroy_bitmap(bmp);

On Sat, 29 Mar 1997, Carlos Costa Portela wrote:

> Hello all!
> Next Tuesday I must have finished a printed-work. Well, I have to do some simple calculations, and
> Fourier transforms (against my teacher's opinion: do it in MATLAB!). I prefer to do it using DJGPP,
> and ALLEGRO. But now, I must print my graphics in a document. I used a Capture program, but it
> doesn't recognize the screen printed by Allegro (?). What is the best way to do this homework?. Make
> a routine that make a .pcx file from the screen, and then call it from the word processor?.
> Help, please!!!
> BYtE!
> 	Carlos.
> 
> 

- Raw text -


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