Re: saving images

New Message Reply Date view Thread view Subject view Author view

Adolf Mathias (dolfi++at++venus.zkm.de)
Tue, 8 Nov 94 15:06:57 +0100


>.... 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?
>
>The position returned by XGetGeometry is always (0, 0) regardless of
>which window I call it for.

You can use

Window dummy;
int res_x,res_y;

XTranslateCoordinates(display,window,DefaultRootWindow(display,0),
                      x,y,&res_x,&res_y,&dummy);

to bring coordinates in any 'window' into their representation relative to the root window.

--

Adolf Mathias Email: <dolfi++at++zkm.de> Zentrum fuer Kunst und Medientechnologie Postfach 6919 76049 Karlsruhe Tel. +49 (0)721 9340 404 Fax. ...9340 49


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.