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

Home » Public Forums » archive » Re: Size of image using tvscl?
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: Size of image using tvscl? [message #54817] Wed, 11 July 2007 13:03
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Hazel writes:

> I'm plotting a scaled image using tvscl but I can't seem to change the
> physical size of the resultant image (I need it to be bigger!). I see
> that xsize and ysize will not work for 'pixel-based devices that are
> unable to change the size of their pixels', like my screen. So is
> there no way round this other than to use .ps for example?

On a display, you resize an image with REBIN or (more likely)
CONGRID. You use XSIZE and YSIZE when you send the image off
to PostScript. Because this is confusing, most people use
a TV replacement. For example TVIMAGE (or TVSCALE if you really
don't want to byte scale your data yourself) or IMGDISP.
Any of these are device independent. (And they will even
handle the resizing for you!)

http://www.dfanning.com/programs/tvimage.pro
http://www.dfanning.com/programs/tvscale.pro

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Size of image using tvscl? [message #54818 is a reply to message #54817] Wed, 11 July 2007 12:24 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
hazel wrote:
> Hi,
>
> I'm plotting a scaled image using tvscl but I can't seem to change the
> physical size of the resultant image (I need it to be bigger!). I see
> that xsize and ysize will not work for 'pixel-based devices that are
> unable to change the size of their pixels', like my screen. So is
> there no way round this other than to use .ps for example?
>
> Thanks in advance,
>
> Hazel
>
> P.S. I always read this newsgroup and it's got me out of some scrapes
> so thanks!
>


you can try rebin()

a = dist(200) ;200*200 pixels
tv,a
tv,rebin(a,400,400)

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Size of image using tvscl?
Next Topic: Adf Format

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

Current Time: Fri Oct 10 19:33:30 PDT 2025

Total time taken to generate the page: 0.80023 seconds