Re: Gettng a widget screenshot? [message #21644] |
Thu, 07 September 2000 00:48 |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
"J.D. Smith" wrote:
>
> David Fanning wrote:
>>
>> Richard Tyc (richt@sbrc.umanitoba.ca) writes:
>>
>>> I am thinking I am missing something simple here but I checked tvrd() and
>>> widget_info and can't seem to find a way to get the current image of the
>>> onscreen widget. ie. I have a base widget filled with Draw, sliders, buttons
>>> etc and I want to get a snapshot at full screen resoution of the realized
>>> base widget. I am also using Object graphics for the Draw windows. I
>>> thought by getting the geometry from widget_info(wbasewidget, /Geometry) I
>>> could specify to tvrd() where to get the image (xo,yo,xsize,ysize) , but
>>> tvrd works on Windows, not widgets(with windows in them) I guess. (ie. when
>>> I try this, tvrd pops up a blank 640x512 window (1/4 screen size from my
>>> preferences) and returns a blank image array?)
>>>
>>> Any ideas ? I am trying to animate how my application looks to the user. I
>>> am using Windows NT4 and IDL 5.3.
>>
>> HyperSnap-DX. About $25. One of the most useful pieces
>> of software I own.
>>
>> http://www.hyperionics.com/
>>
>
> Hate to be an open-source snob... Linux + xwd. About $0. I like:
>
> xwd -frame | convert - mywidget.gif
>
... or import (an ImageMagick tool). This may even be available for
Windows as well ??
Martin
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|
|
Re: Gettng a widget screenshot? [message #21651 is a reply to message #21647] |
Wed, 06 September 2000 13:29  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
J.D. Smith (jdsmith@astro.cornell.edu) writes:
> I thought it would be interesting to make up a huge "test widget" (or several)
> which exercised many of the various placement/labeling/sizing issues endemic to
> IDL. Screen shots from all relevant platforms could be compiled, and it could
> server as a cross-platform widget look/feel reference for those without the
> luxury of machines to try it on. I fear the inconsistencies we'd find.
I'm afraid it would be most illuminating. But think
how useful it would be. I'd be willing to contribute
some time to a project like this.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Gettng a widget screenshot? [message #21653 is a reply to message #21651] |
Wed, 06 September 2000 13:22  |
John-David T. Smith
Messages: 384 Registered: January 2000
|
Senior Member |
|
|
David Fanning wrote:
>
> Richard Tyc (richt@sbrc.umanitoba.ca) writes:
>
>> I am thinking I am missing something simple here but I checked tvrd() and
>> widget_info and can't seem to find a way to get the current image of the
>> onscreen widget. ie. I have a base widget filled with Draw, sliders, buttons
>> etc and I want to get a snapshot at full screen resoution of the realized
>> base widget. I am also using Object graphics for the Draw windows. I
>> thought by getting the geometry from widget_info(wbasewidget, /Geometry) I
>> could specify to tvrd() where to get the image (xo,yo,xsize,ysize) , but
>> tvrd works on Windows, not widgets(with windows in them) I guess. (ie. when
>> I try this, tvrd pops up a blank 640x512 window (1/4 screen size from my
>> preferences) and returns a blank image array?)
>>
>> Any ideas ? I am trying to animate how my application looks to the user. I
>> am using Windows NT4 and IDL 5.3.
>
> HyperSnap-DX. About $25. One of the most useful pieces
> of software I own.
>
> http://www.hyperionics.com/
>
Hate to be an open-source snob... Linux + xwd. About $0. I like:
xwd -frame | convert - mywidget.gif
So I get the frame too. Of course, sometimes you don't want the frame, e.g. in
printed manuals.
I thought it would be interesting to make up a huge "test widget" (or several)
which exercised many of the various placement/labeling/sizing issues endemic to
IDL. Screen shots from all relevant platforms could be compiled, and it could
server as a cross-platform widget look/feel reference for those without the
luxury of machines to try it on. I fear the inconsistencies we'd find.
JD
--
J.D. Smith /*\ WORK: (607) 255-6263
Cornell University Dept. of Astronomy \*/ (607) 255-5842
304 Space Sciences Bldg. /*\ FAX: (607) 255-5875
Ithaca, NY 14853 \*/
|
|
|
Re: Gettng a widget screenshot? [message #21654 is a reply to message #21653] |
Wed, 06 September 2000 13:04  |
Liam E. Gumley
Messages: 378 Registered: January 2000
|
Senior Member |
|
|
Richard Tyc wrote:
> I am thinking I am missing something simple here but I checked tvrd() and
> widget_info and can't seem to find a way to get the current image of the
> onscreen widget. ie. I have a base widget filled with Draw, sliders, buttons
> etc and I want to get a snapshot at full screen resoution of the realized
> base widget. I am also using Object graphics for the Draw windows. I
> thought by getting the geometry from widget_info(wbasewidget, /Geometry) I
> could specify to tvrd() where to get the image (xo,yo,xsize,ysize) , but
> tvrd works on Windows, not widgets(with windows in them) I guess. (ie. when
> I try this, tvrd pops up a blank 640x512 window (1/4 screen size from my
> preferences) and returns a blank image array?)
>
> Any ideas ? I am trying to animate how my application looks to the user. I
> am using Windows NT4 and IDL 5.3.
(1) Give focus to the widget by clicking on it
(2) Hit Alt-PrintScreen
The clipboard now contains a bitmap image of the widget window. This
works for me in Windows NT4 and 98 (it has nothing to do with IDL).
Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
|
|
|
Re: Gettng a widget screenshot? [message #21656 is a reply to message #21654] |
Wed, 06 September 2000 12:28  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Richard Tyc (richt@sbrc.umanitoba.ca) writes:
> I am thinking I am missing something simple here but I checked tvrd() and
> widget_info and can't seem to find a way to get the current image of the
> onscreen widget. ie. I have a base widget filled with Draw, sliders, buttons
> etc and I want to get a snapshot at full screen resoution of the realized
> base widget. I am also using Object graphics for the Draw windows. I
> thought by getting the geometry from widget_info(wbasewidget, /Geometry) I
> could specify to tvrd() where to get the image (xo,yo,xsize,ysize) , but
> tvrd works on Windows, not widgets(with windows in them) I guess. (ie. when
> I try this, tvrd pops up a blank 640x512 window (1/4 screen size from my
> preferences) and returns a blank image array?)
>
> Any ideas ? I am trying to animate how my application looks to the user. I
> am using Windows NT4 and IDL 5.3.
HyperSnap-DX. About $25. One of the most useful pieces
of software I own.
http://www.hyperionics.com/
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|