clipwindow screen capture

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

5 posts / 0 new
Last post
clipwindow screen capture

Submitted by Anonymous on Tue, 08/19/2003 - 10:09.

hi !!!
i am using a scrolled window widget which i use to pan thru images now after panning at any given point in time i want to grab hold of the pixmap in the clip window!!! where do i get it...ie if i could get watever is displayed on the clipwindow in a pixmap.....
i tried Xtvagetvalues..but it dosent work....can u help???

Wed, 08/20/2003 - 18:16#1

Wed, 08/20/2003 - 18:16#1

ICS_support

clipwindow screen capture

If an actual pixmap exists, other than a window background pixmap, you can use XGetImage. This works if you have a Pixmap in the formal X sense. If you just mean that you have a bunch of drawing in the window and you want it, then you are out of luck. Just as your application has to redraw that information when re-exposed, you`d need to write it in some rereadable format.

 

 

Thu, 08/21/2003 - 05:32#2

Anonymous

clipwindow screen capture

thanx ....could u tell me one more thing!!!! i am unable to correctly use XmNbackgroundPixmap in XtVaGetValues to retrieve it into a (blank)pixmap. can u give me an example...thanx

 

Sun, 08/31/2003 - 14:52#4

Sun, 08/31/2003 - 14:52#4

ICS_support

clipwindow screen capture

You can`t. The comp.windows.x FAQ goes into a bit of detail on this. My previous message pointed out the exception for window background pixmaps, but I didn`t mean to imply that there`s another mechanism you can use. The trick is -- you had the pixmap to begin with, before setting it it the server, so process the data there before losing track of the pixmap.

Sun, 08/31/2003 - 14:53#5

Sun, 08/31/2003 - 14:53#5

ICS_support

clipwindow screen capture

You can`t. The comp.windows.x FAQ goes into a bit of detail on this. My previous message pointed out the exception for window background pixmaps, but I didn`t mean to imply that there`s another mechanism you can use. The trick is -- you had the pixmap to begin with, before setting it it the server, so process the data there before losing track of the pixmap.