home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!mcsun!sun4nl!alchemy!prisma!rvloon
- From: rvloon@cv.ruu.nl (Ronald van Loon)
- Subject: Re: 256 grayscale levels with standard colormap
- Originator: rvloon@triton.cv.ruu.nl
- Sender: usenet@cv.ruu.nl (Usenet Network)
- Message-ID: <1992Sep2.135617.27565@cv.ruu.nl>
- Date: Wed, 2 Sep 1992 13:56:17 GMT
- References: <1992Sep2.040959.16164@walter.cray.com>
- Nntp-Posting-Host: triton.cv.ruu.nl
- Organization: University of Utrecht, 3D Computer Vision Research Group
- Keywords: Colormap Grayscale
- Lines: 28
-
- In <1992Sep2.040959.16164@walter.cray.com> vincent@cadillac.cray.com (Vincent LE BARAZER) writes:
-
-
- |" Hi everybodyx,
- |"
- |" I'd like to create an X application that draw lines of pixels, with
- |"color level from 0 to 255 in a Grayscale visual.
- |" This application has to work either on 8 planes grayscale servers or
- |"on 24 planes color server.
- |"
- |" My first step was to Create a new colormap, allocate 256 levels of gray
- |"pixels ( red = green = blue ), and install this colormap .
- |"
- |" ... but other X clients running on the same server do not like this new
- |"colormap !
- |"
- |" So , how can I handle 256 gray levels without changing the color map ?
- |"I suppose that the Visual type has something to do with this ??....
-
- Yes. Don't create a new colormap, but allocate from the default one. Color
- allocation will succeed on a 24-bit server anyway and if the servers are true
- gray-scale you shouldn't have problems with allocating the necessary 256 grays
- either.
- --
- Ronald van Loon (rvloon@cv.ruu.nl) 3DCV Group, Utrecht, The Netherlands.
-
- "I believe the word you are looking for is "AAAAAAAAAARRRRRRRRRRGGGGGHHHH!"
- - The Penguin (Batman ][)
-