home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
- From: nathan@inmos.co.uk (Nathan Sidwell)
- Newsgroups: fj.mail-lists.x-window
- Subject: Getting pixel values from a pixmap
- Message-ID: <1992Nov17.104529.10424@sm.sony.co.jp>
- Date: 17 Nov 92 10:45:29 GMT
- Sender: daemon@sm.sony.co.jp (The devil himself)
- Distribution: fj
- Organization: Workstation Div., Supermicro Systems Group, Sony Corporation
- Lines: 19
- Approved: michael@sm.sony.co.jp
-
- Date: Thu, 12 Nov 92 10:51:04 GMT
- Message-Id: <1992Nov12.105105.8982@wraxall.inmos.co.uk>
- Newsgroups: comp.windows.x
- Sender: xpert-request@expo.lcs.mit.edu
-
- 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
-