Re: saving images

New Message Reply Date view Thread view Subject view Author view

Mark Johnson (johnson++at++vrlab.uccb.ns.ca)
Wed, 9 Nov 1994 08:11:00 -0400


Thanks to some helpful replies this has been solved.

On Nov 8, 9:56am, Mark Johnson wrote:
> Subject: saving images
> hello all,
> I need to save images generated by Performer. When I looked in the FAQ,
> it said that the images saved by pfuSaveImage are "bogus." So it seems
> that I have to write my own. I have found that readdisplay() (as used
> in pfuSaveImage()) would work if I could determine the location
> of my GLXWidget. Does anyone know how to determine either the position
> of a window on the screen or how to directly save Performer images?
>
A call to XTranslateCoordinates() finds the location of the GLX widget.
This is then passed to readdisplay() to obtain the image.

> The position returned by XGetGeometry is always (0, 0) regardless of
> which window I call it for.
>
XGetGeometry() returns coordinates relative to the parent window, and I
did not call it for the window highest in my application's hierarchy.
OOPs.

The FAQ is not clear on what is wrong with the images saved by
pfuSaveImage(). If it is saving the wrong part of the screen, then
I would suggest that the above is the way to a solution.

Thanks for the help,
Mark Johnson
johnson++at++vrlab.uccb.ns.ca


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:39 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.