Reply-To: From: "Arthur" To: "DJGPP Mailing List" Subject: RE: need help saving a picture Date: Sat, 19 Sep 1998 19:02:52 +0100 Message-ID: <000101bde3f7$b8620220$9f4e08c3@arthur> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit In-Reply-To: <6u0fdf$a4r@newsops.execpc.com> Importance: Normal Precedence: bulk > I'm using djgpp and allegro and don't know the code to save a > picture to my harddrive. could somebody please tell me by e-mailing me at We really should create a FAQ for Allegro. Two possible answers could be: 1) RTFM! 2) Join the Allegro mailing list because it's been done to death over there. 3) This will save the screen to a file: int save_bitmap(char *filename) { BITMAP *buffer; PALETTE pal; buffer = create_bitmap(SCREEN_W, SCREEN_H); get_palette(pal); blit(screen, buffer, 0, 0, 0, 0, SCREEN_W, SCREEN_H); return save_bitmap(filename, buffer, pal); } (I think) James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819