Path: utzoo!attcan!uunet!mcsun!inria!mirsa!debussy.inria.fr!mangin From: mangin@debussy.inria.fr (Frank Mangin) Newsgroups: comp.windows.x Subject: X and images / R5 wishes Keywords: image Message-ID: <8913@mirsa.inria.fr> Date: 29 Oct 90 10:45:35 GMT Sender: news@mirsa.inria.fr Reply-To: mangin@debussy.inria.fr (Frank Mangin) Organization: INRIA, Sophia-Antipolis (Fr) Lines: 16 -- I have been writing an image viewing utility under X, using Motif, and I have some remarks: - As far as I know, the Intrinsics don't provide any way to create a shell widget with a visual different from the root window's visual. Just try to view RGB images on a pseudo color visual, you will understand... - Most often, you can't use the default colormap for image viewing. It would be really great to have more than one colormap active at a time (I mean pixels with the same value simultaneously displayed with different colors depending on the window they belong to). - I just compiled the sun 24 bits server recently posted on comp.sources.x. It runs fine, anyway there is a problem with decomposed static colormaps: suppose you want to map an image, you know the rgb values, and you need the corresponding pixel values. The standard way to do this is XAllocColor, that allocates nothing, but looks up the pixel value in the colormap. But this is one server request per pixel! On a sun sparc station, it takes 1 mn for 1000 pixels... I've had to "count in bits" to guess pixel values from the rgb masks (see mit/server/dix/colormap.c for details), and this works only because low pixel values give dark colors for that server. Why not an XLookupColorsss, that would query several values in a single request? Frank Mangin Inria Phone #93 65 78 66 2004 route des Lucioles Email: mangin@mirsa.inria.fr 06560 Valbonne Cedex France