From: "Thomas Harte" Newsgroups: comp.os.msdos.djgpp Subject: Re: Capturing a screen from Allegro. Date: 29 Mar 1997 19:27:05 GMT Organization: SoftySoft Lines: 23 Message-ID: <01bc3c77$1a76cf60$623363c3@default> References: <333d5429 DOT 0 AT news DOT ctv DOT es> NNTP-Posting-Host: host5-99-51-98.btinternet.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp > 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