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

Home » Public Forums » archive » Re: Saving more than one image in a widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Saving more than one image in a widget [message #46721] Tue, 13 December 2005 15:13
Robert Barnett is currently offline  Robert Barnett
Messages: 70
Registered: May 2004
Member
If you choose to put together your savescreen programmatically then you
may need to think about using rebin to produce good quality plots. See
http://www.dfanning.com/graphics_tips/zfonts.html for more info.

Note:
An alternative to using TVRD() for each viewport is to use the Windows
API to create a savescreen. You'll need to write and compile a C/C++
program to do this. I cannot republish the code in question because it
is propietary code written by Siemens Medical.

Robbie
Re: Saving more than one image in a widget [message #46723 is a reply to message #46721] Tue, 13 December 2005 14:25 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Assuming you want to do this programmatically, just read each draw
widget, stitch the images together, and save the composite image. So
say you had 3 8 bit images that were 10x10. Read each one, then create
a new array 30x10, and plunk then 3 images in it and write it to disk.

-Rick

clivecook59@gmail.com wrote:
> Hi,
>
> If i have a base widget with 3 plots in seperate draw widgets within
> it, how can i save a picture that contains all three plots? I can
> easily obtain just one plot but i don't know how to obtain all three.
>
> thanks
>
> Clive
>
Re: Saving more than one image in a widget [message #46724 is a reply to message #46723] Tue, 13 December 2005 14:06 Go to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
clivecook59@gmail.com wrote:
> Hi,
>
> If i have a base widget with 3 plots in seperate draw widgets within
> it, how can i save a picture that contains all three plots? I can
> easily obtain just one plot but i don't know how to obtain all three.
>
> thanks
>
> Clive

Assuming Windows, if all your draw widgets are contained in the same
parent base
then ALT/PrintScrn will copy the current active window to the
clipboard, and thence to
Word or whatever to print.

Andrew C.
Re: Saving more than one image in a widget [message #46725 is a reply to message #46724] Tue, 13 December 2005 13:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
clivecook59@gmail.com writes:

> If i have a base widget with 3 plots in seperate draw widgets within
> it, how can i save a picture that contains all three plots? I can
> easily obtain just one plot but i don't know how to obtain all three.

I use Hypersnap. Works great.

http://www.hyperionics.com/

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Saving more than one image in a widget
Next Topic: Re: Polygon Clipping Algo in IDL

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

Current Time: Wed Oct 08 19:55:12 PDT 2025

Total time taken to generate the page: 0.00655 seconds