delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/03/20:50:11

From: "Fire-Breathing Penguin" <maxiv AT sprint DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <K_Cz3.2718$qY3 DOT 92495 AT newscontent-01 DOT sprint DOT ca> <7qnkdh$dkp$1 AT solomon DOT cs DOT rose-hulman DOT edu>
Subject: Re: Grab your palette from your bitmap.
Lines: 27
Organization: home
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Message-ID: <oIXz3.3913$qY3.137692@newscontent-01.sprint.ca>
Date: Fri, 3 Sep 1999 18:04:33 -0700
NNTP-Posting-Host: 209.148.145.205
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-01.sprint.ca 936396692 209.148.145.205 (Fri, 03 Sep 1999 18:11:32 EDT)
NNTP-Posting-Date: Fri, 03 Sep 1999 18:11:32 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Damian Yerrick wrote in message <7qnkdh$dkp$1 AT solomon DOT cs DOT rose-hulman DOT edu>...
|
|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
|
|

Thank you!!


- Raw text -


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