Mail Archives: djgpp/1997/03/29/21:30:20
> Make a routine that make a .pcx file from the screen, and
> then call it from the word processor?.
> Help, please!!!
> BYtE!
> Carlos.
If we're talking Allegro (which we are), first declare a palette, capture
the screen palette to it, and save the whole thing. E.g. :-
------------------------------------------------------------
PALETTE *pal;
get_palette(pal);
save_pcx("pic.pcx", screen, pal);
------------------------------------------------------------
which will save the contents of the screen to 'pic.pcx', using the palette
defined in pal. Although remember PALETTE *pal is a declaration and must go
wherever you are keeping your 'ints', 'floats', 'BITMAPS' and any other
variables you declare.
-Thomas
- Raw text -