home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20697 < prev    next >
Encoding:
Internet Message Format  |  1993-01-02  |  1.4 KB

  1. Path: sparky!uunet!wupost!cs.utexas.edu!ut-emx!tivoli!foraker!taylor
  2. From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: XGetImage
  5. Message-ID: <7390@tivoli.UUCP>
  6. Date: 2 Jan 93 18:04:14 GMT
  7. References: <1992Dec31.060621.11911@discus.technion.ac.il>
  8. Sender: news@tivoli.UUCP
  9. Lines: 25
  10.  
  11. In article <1992Dec31.060621.11911@discus.technion.ac.il>, ori@marvin.technion.ac.il (Ori Degani) writes:
  12. |> Ok, I'm want to create an XImage from a datafile (an SGI RGB file at this
  13. |> moment).  
  14. |> I wasn't sure how much space to allocate for XCreateImage's *data,
  15. |> so I use XGetImage.
  16. |> I open a DrawingAreaWidget, I set it's width, and
  17. |> height to the original image's w & h, using XtVaSetValues.  
  18. |> Then I do XGetImage from that widget's window, so I can have the XImage
  19. |> struct.  But I get this error message:
  20. |> X Error of failed request:  BadMatch (invalid parameter attributes)
  21. |>   Major opcode of failed request:  73 (X_GetImage)
  22. |>   Serial number of failed request:  36
  23. |>   Current serial number in output stream:  36
  24. |> 
  25. |> I looked in the FAQ, where it says that BadMatch might mean the window
  26. |> is out of the screen, but it's not.  The WM lets me put the window somewhere
  27. |> and then it spits the error msg out.
  28. |> 
  29. |> What am I doing wrong?
  30.  
  31. What parameter are you specifying for "format".
  32. You should use ZPixmap.
  33.  
  34. What plane mask are you specifying?
  35. AllPlanes should be used.
  36.