delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/03/07:07:07

From: "Damian Yerrick" <die DOT spammers AT pineight DOT 8m DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Grab your palette from your bitmap.
Date: Thu, 2 Sep 1999 23:54:12 -0500
Organization: Rose-Hulman Institute of Technology
Lines: 21
Message-ID: <7qnkdh$dkp$1@solomon.cs.rose-hulman.edu>
References: <K_Cz3.2718$qY3 DOT 92495 AT newscontent-01 DOT sprint DOT ca>
NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu
X-Trace: solomon.cs.rose-hulman.edu 936334577 13977 137.112.205.155 (3 Sep 1999 04:56:17 GMT)
X-Complaints-To: news AT cs DOT rose-hulman DOT edu
NNTP-Posting-Date: 3 Sep 1999 04:56:17 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Fire-Breathing Penguin <maxiv AT sprint DOT ca> wrote in message
news:K_Cz3.2718$qY3 DOT 92495 AT newscontent-01 DOT sprint DOT ca...
> Howdy. I got a tad bit of a problem -- whenever I load a picture and
display
> it, the colors get all mixed up. I've tried setting
> set_pallete(desktop_pallete), didn't help. The pics are basic BMP's saved
in
> 256 mode in M$'s Paint.The pictures are in a datafile. Should I create a
> custom pallete? If so, how do I do that? I've tried rgbmap, but I have a
> feeling I'm using it the wrong way... Plz help.

Try making a new palette object in the grabber. Load your bitmap
into this palette and save the datafile. When you load your picture,
    set_palette(however_you_access_your_palette);
and the picture should look right.

Damian Yerrick
http://come.to/yerrick


- Raw text -


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