home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!pipex!warwick!mrccrc!mrccrc!dtailor
- From: dtailor@crc.ac.uk (Dilip Tailor x3296)
- Subject: Help with Xview and Colour
- Message-ID: <1992Aug20.134939.5367@crc.ac.uk>
- Sender: news@crc.ac.uk
- Nntp-Posting-Host: germanium
- Reply-To: dtailor@crc.ac.uk (Dilip Tailor x3296)
- Organization: MRC Human Genome Mapping Project Resource Centre, Harrow, UK
- Date: Thu, 20 Aug 1992 13:49:39 GMT
- Lines: 17
-
- How can one convert RGB values to a pixel value for
- displaying onto a canvas in Xview.
-
- i.e R = 255 G = 0; B = 0; (=> pixel = red)
-
- XSetforground(display, window, pixel);
- XDrawPoint(display, window, gc, 50, 50);
-
- (put a red pixel at 50, 50 on the canvas)
-
- etc...
-
- Dilip Tailor, Email Janet: dtailor@uk.ac.crc
- Computing Services, Internet: dtailor@crc.ac.uk
- MRC Human Genome Mapping Project Resource Centre, Earn/Bitnet: dtailor%crc.ac.uk@ukacrl
- Clinical Research Centre,
- Watford Rd., Harrow, LONDON, HA1 3UJ. Tel: 081-869-3296
-