home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / windows / x / 20191 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.4 KB

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