home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!das.wang.com!wang!news
- From: ori@marvin.technion.ac.il (Ori Degani)
- Subject: XGetImage
- Organization: Heart of Gold Institute
- Date: Thu, 31 Dec 1992 06:06:21 GMT
- Message-ID: <1992Dec31.060621.11911@discus.technion.ac.il>
- Sender: news@wang.com
- Lines: 24
-
- 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?
- Ori
- --
- | ---- Ori Degani
- | |___ ori@eddie.technion.ac.il (Ship Computer on the HOG)
- | | ori@marvin.technion.ac.il (Who else)
- | ---- s2973229@techst02.technion.ac.il (Ech..)
-