kbj@jupiter.risc.com (Ken Johnson) (01/15/91)
Can someone explain how a color map segement, a canvsa, and an XImage work together. I've created a canvas that displays an ximage with no problem. In fact, I display dozens of ximages simultaneously. I sometimes need each ximage to have a different color map. my question for you gurus is how do I do it. When creating the canvas for the image I have used the WIN_CMS attribute and set it to the cms that I want associated with the canvas. When the image first pops up its fine. When the repaint tries to put up new data it goes back to what appears to be the default cms. The way I know something proper is happening with the cms and image is that the background color for the screen is magenta and comes up magenta - the repaint wipes it out. Now, I realize that I can't jhave every possible choice I want for color maps because of the 8 bit limitations of the display. I would like it if the appropriate color map is loaded for each canvsa/image is loaded when the image first pops up, and when the cursor is in the window/canvas. I don't care if the loading of the appropraite color map causes other app windows to look wrong for a while. I've used NCSA XImage and that has some of the charasteristics I want in my app. Any ideas? Ken Johnson Phone: 805-373-4487 Rockwell International Science Center Comnet: 273-4487 1049 Camino Dos Rios A-18 FAX: 805-373-4383 Thousand Oaks, CA 91360 e-mail: kbj@risc.com Theorem 1: Anything can be proven by statistical methods if enough data is gathered..... Ken's corollary: If you don't have any idea what to do with the data train a network....