From: Michal Mertl Newsgroups: comp.os.msdos.djgpp Subject: Re: Simple allegro question Date: Wed, 15 Apr 1998 14:46:12 +0200 Organization: Prague University of Economics Lines: 16 Message-ID: References: <3531deab DOT 3296405 AT news DOT flashnet DOT it> NNTP-Posting-Host: manes.vse.cz Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Mon, 13 Apr 1998, DeHackEd wrote: > 1) Convert both to use the same palette. The Allergro Grabber could do this, but > it requires 256->Truecolor->256 conversion after switching palettes. You don't need to do that in external program, you could set 8bit mode and create bitmap with bigger color depth by create_bitmap_ex. Than blit both images to it (they'll be converted to the new depth) and than use generate_optimized_pallete function to make new pallete. Than set that pallete and blit the images to 8bpp memory bitmaps back. This proces is pretty slow so you should call it on initialization only. > 3) Use highcolour modes for the entire program. The upgraded 3.0+WIP version of > Allegro is suppose to support this. You don't need WIP version to do that. Michal "MiMe" Mertl xmerm05 AT vse DOT cz