Mail Archives: djgpp/1997/12/30/17:45:40
From: | epsilonbeta AT geocities DOT com
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro: reading fractint .map-files (or psp .pal files) ?
|
Date: | Tue, 30 Dec 1997 22:40:12 GMT
|
Organization: | EUnet Belgium, Leuven, Belgium
|
Lines: | 26
|
Message-ID: | <34a97622.19679817@news.ping.be>
|
NNTP-Posting-Host: | dialup326.antwerp.eunet.be
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi Evry1,
The subject says it all ...
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 ?
The problem is that .map-files and .pal-files are textfiles with 256
(r,g,b) triplets, e.g.
0 0 0
128 255 128
64 64 64
... (and so on)
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:-))
Thanks for all help,
Edward Boone (alias Epsilon Beta)
epsilonbeta AT geocities DOT com
http://www.geocities.com/SiliconValley/Vista/6617/index.html
/* Only nothing seems to be what it looks like */
- Raw text -