home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / maillis / xwindow / 17541 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.1 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
  2. From: nathan@inmos.co.uk (Nathan Sidwell)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Getting pixel values from a pixmap
  5. Message-ID: <1992Nov17.104529.10424@sm.sony.co.jp>
  6. Date: 17 Nov 92 10:45:29 GMT
  7. Sender: daemon@sm.sony.co.jp (The devil himself)
  8. Distribution: fj
  9. Organization: Workstation Div., Supermicro Systems Group, Sony Corporation
  10. Lines: 19
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Thu, 12 Nov 92 10:51:04 GMT
  14. Message-Id: <1992Nov12.105105.8982@wraxall.inmos.co.uk>
  15. Newsgroups: comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18. In a conversion program I'm writing I need to read some pixel values back
  19. from a depth 1 pixmap, after doing some drawing to the pixmap. The easiest
  20. way I can figure out how to do this is
  21.  
  22. image = XGetImage(display, pixmap, x, y, 1, 1, (long)1, XYBitmap);
  23. pixel = XGetPixel(image, 0, 0);
  24. XDestroyImage(image);
  25.  
  26. is there a better way? ie one that reads directly from the pixmap.
  27.  
  28. nathan
  29. --
  30.  
  31. Nathan Sidwell  INMOS UK |                 | nathan@inmos.co.uk       DoD#0390
  32.