delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/12/06:31:25

From: jaster32 AT hotmail DOT com (Jaster)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: grabber
Date: Fri, 12 Dec 1997 10:09:45 GMT
Organization: NssM Software
Lines: 17
Message-ID: <34910cdb.17903773@news.earthlink.net>
References: <3490F1ED DOT 920B5CCC AT uci DOT edu>
NNTP-Posting-Host: 207.217.143.74
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Fri, 12 Dec 1997 00:12:29 -0800, "Hugo C. Yeh" <hcyeh AT uci DOT edu>
wrote:

>I'm just starting off and I've tried using the grabber tool in Allegro
>to get the BMP's, but the color's always messed up when loaded...Does
>anyone know a way to correct this? ...
>
>Hugo
>

Allegro saves the palette data and the bitmap data seperately. You
must first read in the bitmap..grab the bitmap data.. then make a new
palette and grab the palette info from the bitmap. Then you can use
set_palette(); to set up the correct palette before blitting the
bitmap to the screen.. That should fix the color problem.

Jaster... 

- Raw text -


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