Reply-To: From: "Arthur" To: "DJGPP Mailing List" Subject: RE: need help saving a picture Date: Sun, 20 Sep 1998 00:01:35 +0100 Message-ID: <000401bde421$73651520$6d4e08c3@arthur> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit In-Reply-To: <000101bde3f7$b8620220$9f4e08c3@arthur> 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) ^^^^^^^^^^^ Whoops! Call this something else! > { > 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 James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819