home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 19023 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.6 KB

  1. Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: ori@marvin.technion.ac.il (Ori Degani)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: XGetImage
  5. Message-ID: <1992Dec31.160817.20574@sm.sony.co.jp>
  6. Date: 31 Dec 92 16:08:17 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Heart of Gold Institute
  10. Lines: 29
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Thu, 31 Dec 1992 06:06:21 GMT
  14. Message-Id: <1992Dec31.060621.11911@discus.technion.ac.il>
  15. Newsgroups: comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18. Ok, I'm want to create an XImage from a datafile (an SGI RGB file at this
  19. moment).  
  20. I wasn't sure how much space to allocate for XCreateImage's *data,
  21. so I use XGetImage.
  22. I open a DrawingAreaWidget, I set it's width, and
  23. height to the original image's w & h, using XtVaSetValues.  
  24. Then I do XGetImage from that widget's window, so I can have the XImage
  25. struct.  But I get this error message:
  26. X Error of failed request:  BadMatch (invalid parameter attributes)
  27.   Major opcode of failed request:  73 (X_GetImage)
  28.   Serial number of failed request:  36
  29.   Current serial number in output stream:  36
  30.  
  31. I looked in the FAQ, where it says that BadMatch might mean the window
  32. is out of the screen, but it's not.  The WM lets me put the window somewhere
  33. and then it spits the error msg out.
  34.  
  35. What am I doing wrong?
  36. Ori
  37. --
  38.    |  ----      Ori Degani
  39.    |  |___      ori@eddie.technion.ac.il   (Ship Computer on the HOG)
  40.    |  |         ori@marvin.technion.ac.il  (Who else) 
  41.    |  ----      s2973229@techst02.technion.ac.il (Ech..)   
  42.