home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20660 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.3 KB  |  35 lines

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