home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!hri.com!noc.near.net!gateway!miki!oj
- From: oj@miki.pictel.com (Oliver Jones)
- Newsgroups: comp.windows.x
- Subject: Re: Problem copying from Window to Pixmap
- Message-ID: <1992Dec16.140254.3109@miki.pictel.com>
- Date: 16 Dec 92 14:02:54 GMT
- References: <BzB2vH.Fup@dutiws.twi.tudelft.nl>
- Organization: PictureTel Corporation
- Lines: 16
-
- In article <BzB2vH.Fup@dutiws.twi.tudelft.nl> graaff@IS.TWI.TUDelft.NL writes:
-
- >I have a problem copying data from a Window to a Pixmap.
- >I have the following code to do that:
- >Pixmap pm = XCreatePixmap(dpy, xwin, w, h, 1);
- >XCopyPlane(dpy, xwin, pm, gc, 0, 0, w, h, 0, 0, 1L);
-
- >... X ... tells me that:
- >X Error of failed request: BadMatch (invalid parameter attributes)
- > Major opcode of failed request: 63 (X_CopyPlane) ...
-
- The GC you use in an XCopyPlane request has to match
- the DESTINATION in depth (and screen).
-
- Create a GC with reference to your one plane pixmap, use it
- in your copy operation, and everything will work.
-