Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: X colormaps



>>>>> "Scott" == Scott Stone <sstone@example.com> writes:

    Scott> Are colormaps and colormap structures in X at all useful in
    Scott> bit depths greater than 8?  Ie, if I have a program that
    Scott> I'd like to be able to run under X and do neat things like
    Scott> pallette fades/color cycling/etc, can I do that in
    Scott> 16/24/32bpp or must I use 8bpp?

They are perfectly general and can be and are used for exactly the
purpose you are describing.  AFAIK you needn't limit yourself to
32bpp, as the XColor structure uses CARD16s for the R-G-B components.

I strongly recommend that you get copies of O'Reilly's X series,
vol. 1 and 2 on Xlib's features, and also the new book on the X
device-independent color facility.  (I'm not a specialist, I don't
know any more about it that that. ;-)  X11R6 now supports CIE and HIV
color spaces directly, making that kind of thing much easier to do.
(At least I think so, maybe it's an extension and not part of the
standard yet.)

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences        Tel/fax: +1 (298) 53-5091
--------------------------------------------------------------
Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30
featuring Linux on multiple platforms:
i386, Sparc, PA-Risc, Amiga, SGI, Alpha, PalmPilot, ...
Next Nomikai: September, 19:30 Tengu TokyoEkiMae 03-3275-3691
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links