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

  1. Path: sparky!uunet!spool.mu.edu!sgiblab!adagio.panasonic.com!chorus.mei!oskgate0.mei!icspub!wnoc-kyo!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: XGetImage
  5. Message-ID: <1993Jan2.195602.15208@sm.sony.co.jp>
  6. Date: 2 Jan 93 19:56:02 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Workstation Div., Supermicro Systems Group, Sony Corporation
  10. Lines: 31
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 2 Jan 93 18:04:14 GMT
  14. Message-Id: <7390@tivoli.UUCP>
  15. Newsgroups: comp.windows.x
  16. References: <1992Dec31.060621.11911@discus.technion.ac.il>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. In article <1992Dec31.060621.11911@discus.technion.ac.il>, ori@marvin.technion.ac.il (Ori Degani) writes:
  20. |> Ok, I'm want to create an XImage from a datafile (an SGI RGB file at this
  21. |> moment).  
  22. |> I wasn't sure how much space to allocate for XCreateImage's *data,
  23. |> so I use XGetImage.
  24. |> I open a DrawingAreaWidget, I set it's width, and
  25. |> height to the original image's w & h, using XtVaSetValues.  
  26. |> Then I do XGetImage from that widget's window, so I can have the XImage
  27. |> struct.  But I get this error message:
  28. |> X Error of failed request:  BadMatch (invalid parameter attributes)
  29. |>   Major opcode of failed request:  73 (X_GetImage)
  30. |>   Serial number of failed request:  36
  31. |>   Current serial number in output stream:  36
  32. |> 
  33. |> I looked in the FAQ, where it says that BadMatch might mean the window
  34. |> is out of the screen, but it's not.  The WM lets me put the window somewhere
  35. |> and then it spits the error msg out.
  36. |> 
  37. |> What am I doing wrong?
  38.  
  39. What parameter are you specifying for "format".
  40. You should use ZPixmap.
  41.  
  42. What plane mask are you specifying?
  43. AllPlanes should be used.
  44.