Mail Archives: djgpp/1998/09/19/14:04:23
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: | Sat, 19 Sep 1998 19:02:52 +0100
|
Message-ID: | <000101bde3f7$b8620220$9f4e08c3@arthur>
|
MIME-Version: | 1.0
|
In-Reply-To: | <6u0fdf$a4r@newsops.execpc.com>
|
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)
{
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
- Raw text -