Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Binary standards for images and sounds
- To: crossfire (at) ifi.uio.no
- Subject: Re: Binary standards for images and sounds
- From: Petri Heinil{ <>
- Date: Fri, 15 Apr 1994 20:27:26 +0300 (EETDST)
- In-Reply-To: <>
On Fri, 15 Apr 1994, Scott MacFiggen wrote:
> Before you start putting the XPM format down anymore I suggest
> you download the libary and read throught the docs, it should take
> about 1/2 hour. XPM format can take both named colors AND rgb
> colors. The fact that it can take named colors is a big bonus.
> X is pretty smart when it comes to color maps, if it is given a named
> color but can't allocate it then it can find a pretty good match. If
> its given a rgb value, it will have a harder time of doing this. Dont
> ask me why but its true. I was planning on using the XPM format for
> another game that i am/was/maybe going to write and did a bit of research on
> this. I'm starting to lose confidence in what you are saying since you
> keep telling us how bad XPM is but have no experience with it.
One note for rgb's in xpm's.
When I wrote library for images and first I used xpm's as inserting
and extracting format, I found that there is no way (without
/usr/lib/rgb.txt) to get out RGB values from the xpm API without
connection to the X server. I needed this for calculating color-
distancies (normal-rgb), when unifying color set to one image.
So I decide to use ppm format for the file. And use pbmplus
package to conversion.
-- <A HREF="http://www.lut.fi/~hevi/">The Page</A> --