Mail Archives: djgpp/1998/09/19/19:13:54
Reply-To: | <arfa AT clara DOT net>
|
From: | "Arthur" <arfa AT clara DOT net>
|
To: | "DJGPP Mailing List" <djgpp AT delorie DOT com>
|
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
|
In-Reply-To: | <000101bde3f7$b8620220$9f4e08c3@arthur>
|
Importance: | Normal
|
> > 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
- Raw text -