home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21673 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.2 KB

  1. Path: sparky!uunet!UB.com!pacbell.com!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!warwick!uknet!mucs!cs.man.ac.uk!yipd
  2. From: yipd@cs.man.ac.uk (David Yip)
  3. Newsgroups: comp.windows.x
  4. Subject: Getting image data from a Pixmap
  5. Summary: getting image data from a pixmap
  6. Keywords: Getting image data from a Pixmap
  7. Message-ID: <yipd.728239402@cs.man.ac.uk>
  8. Date: 28 Jan 93 16:43:22 GMT
  9. Sender: news@cs.man.ac.uk
  10. Lines: 24
  11.  
  12. Hello,
  13.  
  14.     I have a routine which only operates on drawables (windows or pixmaps)
  15. and this routine effectively grabs a picture and puts it into a window or 
  16. pixmap. What I want to do is get at the data associated with the "picture"
  17. that the routine has created. In the same format as data associated in Ximage
  18. ie char *data and then do something with that.
  19.  
  20.     Would i first create a pixmap then convert it to a Ximage by using
  21. XGetImage?
  22.  
  23.     If this is right how do I go about creating the dummy pixmap.
  24.  
  25.     As you can proably tell I don't know what I am going really.
  26.  
  27.     So any help would be appreciated.
  28.  
  29.     Thanks in advance,
  30.  
  31.     David.
  32. --
  33. David Yip  Janet      : yip@uk.ac.man.cs
  34.            Internet   : yip@cs.man.ac.uk or yip%cs.man.ac.uk@nsfnet-relay.ac.uk 
  35.            Earn/Bitnet: yip%uk.ac.man.cs@UKACRL
  36.