home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: ori@marvin.technion.ac.il (Ori Degani)
- Newsgroups: fj.mail-lists.x-window
- Subject: XGetImage
- Message-ID: <1992Dec31.160817.20574@sm.sony.co.jp>
- Date: 31 Dec 92 16:08:17 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: Heart of Gold Institute
- Lines: 29
- Approved: michael@sm.sony.co.jp
-
- Date: Thu, 31 Dec 1992 06:06:21 GMT
- Message-Id: <1992Dec31.060621.11911@discus.technion.ac.il>
- Newsgroups: comp.windows.x
- Sender: xpert-request@expo.lcs.mit.edu
-
- 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..)
-