home *** CD-ROM | disk | FTP | other *** search
- 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
- From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: XGetImage
- Message-ID: <1993Jan2.195602.15208@sm.sony.co.jp>
- Date: 2 Jan 93 19:56:02 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: Workstation Div., Supermicro Systems Group, Sony Corporation
- Lines: 31
- Approved: michael@sm.sony.co.jp
-
- Date: 2 Jan 93 18:04:14 GMT
- Message-Id: <7390@tivoli.UUCP>
- Newsgroups: comp.windows.x
- References: <1992Dec31.060621.11911@discus.technion.ac.il>
- Sender: xpert-request@expo.lcs.mit.edu
-
- In article <1992Dec31.060621.11911@discus.technion.ac.il>, ori@marvin.technion.ac.il (Ori Degani) writes:
- |> Ok, I'm want to create an XImage from a datafile (an SGI RGB file at this
- |> moment).
- |> I wasn't sure how much space to allocate for XCreateImage's *data,
- |> so I use XGetImage.
- |> I open a DrawingAreaWidget, I set it's width, and
- |> height to the original image's w & h, using XtVaSetValues.
- |> Then I do XGetImage from that widget's window, so I can have the XImage
- |> struct. But I get this error message:
- |> X Error of failed request: BadMatch (invalid parameter attributes)
- |> Major opcode of failed request: 73 (X_GetImage)
- |> Serial number of failed request: 36
- |> Current serial number in output stream: 36
- |>
- |> I looked in the FAQ, where it says that BadMatch might mean the window
- |> is out of the screen, but it's not. The WM lets me put the window somewhere
- |> and then it spits the error msg out.
- |>
- |> What am I doing wrong?
-
- What parameter are you specifying for "format".
- You should use ZPixmap.
-
- What plane mask are you specifying?
- AllPlanes should be used.
-