cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/15/21:47:24

From: Michal Mertl <xmerm05 AT manes DOT vse DOT cz>
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: <Pine.ULT.3.95.980415144156.11719A-100000@manes.vse.cz>
References: <3531deab DOT 3296405 AT news DOT flashnet DOT it> <eaIY8iyZ9GA DOT 179 AT uppubnews03>
NNTP-Posting-Host: manes.vse.cz
Mime-Version: 1.0
In-Reply-To: <eaIY8iyZ9GA.179@uppubnews03>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019