home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Newsgroups: comp.windows.x
- Subject: Re: XImage and pixel values
- Message-ID: <1992Nov20.094724.20322@thunder.mcrcim.mcgill.edu>
- Date: 20 Nov 92 09:47:24 GMT
- References: <1992Nov18.013524.4791@photon.com>
- Organization: McGill Research Centre for Intelligent Machines
- Lines: 21
-
- In article <1992Nov18.013524.4791@photon.com>, paula@photon.com (Paula Solima) writes:
-
- > I have an array of pixel values ranging from 0 to 255. Is there a
- > way to keep the full range of pixel values and use XCreateImage,
- > without having my entire screen turn black?
-
- Maybe. Depends on lots of things.
-
- > There is a PseudoColor visual with 12 planes (colormap size = 4096)
- > available on my Silicon Graphics, however I do see how XCreateImage
- > would access colorcells > 255.
-
- (Do *not* see how, I assume you mean.) You would use an XImage of
- depth greater than 8, of course. You would probably use 16 for this;
- check out the list of available depths image depths (see
- XListPixmapFormats and related functions).
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-