comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Obtaining image of screen
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Obtaining image of screen [message #31855 is a reply to message #31776] Wed, 21 August 2002 07:26 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Alan Ling wrote:
>
> "Liam E. Gumley" <Liam.Gumley@ssec.wisc.edu> wrote in message news:<3D62959E.3E369C6F@ssec.wisc.edu>...
>> Alan Ling wrote:
>>> I have an IDL program which creates a window containing various
>>> widgets, including a drawing area made with WIDGET_DRAW. I can draw
>>> something in the drawing area and save the image of what is drawn to
>>> an array using TVRD(). What I want to do is to save the entire
>>> window into an array as an image, not just the graphics portion of the
>>> window, but everything in the window including all the widgets. Does
>>> anyone know how to do this?
>>
>> I don't know of any way to do this in IDL.
>>
>> However there are a number of non-IDL ways to do it, depending on your
>> host platform. What platform are you using?
>>
>> Cheers,
>> Liam.
>> Practical IDL Programming
>> http://www.gumley.com/
>
> I am using Irix 6.5 on a SGI O2. I was looking for a way to do it in
> IDL. I looked into spawning snapshot in my code, but snapshot doesn't
> accept any useful arguments such as the window position and size, thus
> making it clumsy to use for this purpose.

The 'import' utility from the ImageMagick package reads an image from
any visible X window and outputs it as an image file. If you don't have
it installed:

http://freeware.sgi.com/Installable/ImageMagick-5.4.1.html

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Obtaining image of screen
Next Topic: Re: Read/format mixed int/flt/strng ascii files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 00:24:18 PDT 2025

Total time taken to generate the page: 0.80137 seconds