home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!lsl!snail
- From: snail@lsl.co.uk
- Newsgroups: comp.windows.x
- Subject: Re: Plane Masks
- Message-ID: <1992Dec14.165927.2833@lsl.co.uk>
- Date: 14 Dec 92 15:59:27 GMT
- References: <3306@nlsun1.oracle.nl>
- Organization: Laser-Scan Ltd., Cambridge
- Lines: 24
-
- In article <3306@nlsun1.oracle.nl>, rgasch@nl.oracle.com (Robert Gasch) writes:
- > I'm trying to use XGetImage to copy a Pixmap to an XImage. The problem
- > is that my call returns nothing. The XImage structure is there but
- > the data field points to \0. I suspect that there is something wrong
- > with my plane_mask parameter. I have searched through the documentation
- > I own and have never encountered a real description of what a Plane_mask
- > really is and what values it should have to specify a 2 bit pixmap.
- >
- > The following is my call:
- > t=XGetImage(mydisplay, text_win.win, (int)ship.x, (int)ship.y,
- > SHIP_WIDTH, SHIP_HEIGHT, 1, XYPixmap);
-
- Not having all the info to hand, ie what depth is your pixmap? (looks like a
- window from the code sample if variable names are anything to go by)...
-
- Instead of '1', try AllPlanes, which is a constant from one of the header
- files (X11/X.h or X11/Xlib.h or X11/Xutil.h).
- --
- snail@lsl.co.uk
-
- muso/unix joke: "which debugger do you use?"
- "I use dbx..."
- "Oh really, we use Dolby C..."
- Motorola inside.
-