home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!inmos!wraxall.inmos.co.uk!elberton!nathan
- Newsgroups: comp.windows.x
- From: nathan@inmos.co.uk (Nathan Sidwell)
- Subject: Getting pixel values from a pixmap
- Message-ID: <1992Nov12.105105.8982@wraxall.inmos.co.uk>
- X-Newsreader: Tin 1.1 PL5
- Date: Thu, 12 Nov 92 10:51:04 GMT
- Lines: 15
-
- In a conversion program I'm writing I need to read some pixel values back
- from a depth 1 pixmap, after doing some drawing to the pixmap. The easiest
- way I can figure out how to do this is
-
- image = XGetImage(display, pixmap, x, y, 1, 1, (long)1, XYBitmap);
- pixel = XGetPixel(image, 0, 0);
- XDestroyImage(image);
-
- is there a better way? ie one that reads directly from the pixmap.
-
- nathan
- --
-
- Nathan Sidwell INMOS UK | | nathan@inmos.co.uk DoD#0390
-
-