home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!UB.com!pacbell.com!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!warwick!uknet!mucs!cs.man.ac.uk!yipd
- From: yipd@cs.man.ac.uk (David Yip)
- Newsgroups: comp.windows.x
- Subject: Getting image data from a Pixmap
- Summary: getting image data from a pixmap
- Keywords: Getting image data from a Pixmap
- Message-ID: <yipd.728239402@cs.man.ac.uk>
- Date: 28 Jan 93 16:43:22 GMT
- Sender: news@cs.man.ac.uk
- Lines: 24
-
- Hello,
-
- I have a routine which only operates on drawables (windows or pixmaps)
- and this routine effectively grabs a picture and puts it into a window or
- pixmap. What I want to do is get at the data associated with the "picture"
- that the routine has created. In the same format as data associated in Ximage
- ie char *data and then do something with that.
-
- Would i first create a pixmap then convert it to a Ximage by using
- XGetImage?
-
- If this is right how do I go about creating the dummy pixmap.
-
- As you can proably tell I don't know what I am going really.
-
- So any help would be appreciated.
-
- Thanks in advance,
-
- David.
- --
- David Yip Janet : yip@uk.ac.man.cs
- Internet : yip@cs.man.ac.uk or yip%cs.man.ac.uk@nsfnet-relay.ac.uk
- Earn/Bitnet: yip%uk.ac.man.cs@UKACRL
-