delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/30/23:30:20

From: Konstanty Bialkowski <M DOT Bialkowski AT mailbox DOT uq DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: reading fractint .map-files (or psp .pal files) ?
Date: Wed, 31 Dec 1997 14:07:36 +1000
Organization: University of Queensland
Lines: 19
Message-ID: <34A9C507.26D9C012@mailbox.uq.edu.au>
References: <34a97622 DOT 19679817 AT news DOT ping DOT be>
Reply-To: M DOT Bialkowski AT mailbox DOT uq DOT edu DOT au
NNTP-Posting-Host: csmbialk.slip.cc.uq.edu.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


epsilonbeta AT geocities DOT com wrote:

> How can I, using Allegro, read in a .map-file (used in fractint) or
> pal-file (used in Paint Shop Pro) into a PALETTE structure ?
>
> Or how can I display a picture using a palette from a .map-file ?
>
> with each r,g,b value ranging from 0 to 255, while in a PALETTE
> structure each r,g,b value ranges from 0 to 63 (as you might know:-))

 All you need to do is divide each triplet value by 4. [so 255->63 etc]
pal->r=int(r/4)
...

Konstanty
http://kon.home.ml.org

- Raw text -


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