home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!cs.utexas.edu!ut-emx!tivoli!foraker!taylor
- From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
- Newsgroups: comp.windows.x
- Subject: Re: XGetImage
- Message-ID: <7390@tivoli.UUCP>
- Date: 2 Jan 93 18:04:14 GMT
- References: <1992Dec31.060621.11911@discus.technion.ac.il>
- Sender: news@tivoli.UUCP
- Lines: 25
-
- 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.
-