From: Stephen Williams <steve@icarus.icarus.com>
To: axp-list@redhat.com
Subject: [OFFTOPIC] Re: The new X
Date: Tue, 23 Jun 1998 20:44:16 -0700 [thread overview]
Message-ID: <199806240344.UAA15981@icarus.icarus.com> (raw)
In-Reply-To: Your message of "Tue, 23 Jun 1998 20:07:10 EDT." <19980623200710.U19844@xcski.com>
ptomblin@xcski.com said:
> I suspect what Windows does, and what X applications could easily do,
> is to divide the entire color space up before hand into as many chunks
> as your card would support, and then when an application requests a
> color, gives it whichever of the pre-registered colours is the closest
> match.
That is exactly what the truecolor visual does under X. Try it. The
results are mixed, although sure enough the colormap switching goes away.
A color allocation will always succeed, but the closest color (that can
be represented in 332) will be returned.
ptomblin@xcski.com said:
> But I'm sure my former collegues at Kodak could come up with something
> better.
"better" requires calculating a histogram of all the colors requested.
A palette can be calculated from that, then the pixels can be mapped onto
that calculated palette.
But then, some application will display a photograph using a gazillion
shades of pink and your green color scheme has left you with only 2 reds:-)
Windows works because the desktop only uses a few colors that are known to
exist in the M$ $tandard palette, and the applications that display images
go through a *great* deal of effort to approximate and dither. High
resolutions help.
This is way off topic, I'll be quiet now.
--
Steve Williams "The woods are lovely, dark and deep.
steve@icarus.com But I have promises to keep,
steve@picturel.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
next prev parent reply other threads:[~1998-06-24 3:44 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-22 17:35 Making programs 64 bit clean Greg Lindahl
1998-06-22 19:32 ` Michal Jaegermann
1998-06-22 20:47 ` Christopher Curtis
1998-06-22 21:49 ` Michal Jaegermann
1998-06-22 21:50 ` Paul Tomblin
1998-06-22 22:24 ` Jeff Sturm
1998-06-22 22:58 ` The new X (was Re: Making programs 64 bit clean) Christopher Curtis
1998-06-22 23:52 ` Paul Tomblin
1998-06-23 0:54 ` Christopher Curtis
1998-06-23 1:31 ` Bryan W. Headley
1998-06-23 2:33 ` cbbrowne
1998-06-23 2:54 ` Paul Tomblin
1998-06-23 3:42 ` mgraffam
1998-06-23 15:26 ` The new X [long!] Christopher Curtis
1998-06-23 17:46 ` mgraffam
1998-06-24 1:59 ` cbbrowne
1998-06-23 18:33 ` Paul Tomblin
1998-06-23 20:30 ` mgraffam
1998-06-23 23:57 ` Paul Tomblin
1998-06-24 2:14 ` mgraffam
1998-06-24 2:06 ` Christopher Curtis
1998-06-23 15:47 ` The new X (was Re: Making programs 64 bit clean) Jeff Sturm
1998-06-23 16:10 ` Christopher Curtis
1998-06-23 17:01 ` Jeff Sturm
1998-06-23 19:47 ` pjlahaie
1998-06-23 18:25 ` William Bradford
1998-06-24 2:28 ` several messages Christopher Curtis
1998-06-23 18:42 ` The new X (was Re: Making programs 64 bit clean) Paul Tomblin
1998-06-23 21:03 ` The new X Wes Bauske
1998-06-24 0:07 ` Paul Tomblin
1998-06-24 3:44 ` Stephen Williams [this message]
1998-06-24 16:02 ` Wes Bauske
1998-06-24 18:01 ` Christopher Curtis
1998-06-24 13:59 ` Jeff Sturm
1998-06-23 0:18 ` The new X (was Re: Making programs 64 bit clean) Pablo A. Godel
1998-06-23 2:28 ` Paul Tomblin
1998-06-23 8:39 ` Joakim Roubert
1998-06-23 15:30 ` OFFTOPIC: " Jeff Sturm
1998-06-24 1:31 ` Christopher Curtis
1998-06-24 14:52 ` Jeff Sturm
1998-06-22 19:53 ` Making programs 64 bit clean Richard Hadsell
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox