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

Home » Public Forums » archive » Re: resizing image
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: resizing image [message #39041 is a reply to message #39040] Mon, 12 April 2004 07:54 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> I want to resize an image say 'rose.jpg'(examples/data) equal to my
> screensize. How can it be resized to screensize such that when I
> display it, It cover my whole screen. If in case it is not possible
> then upto what portion of monitor screen, it can be resized and how?

If you want to resize it such that the new dimensions are integer
multiples of the original dimensions, use rebin(). If the new
dimensions are not integer multiples of the original, use congrid().

# Get screen size
size = device, GET_SCREEN_SIZE=resolution

# Resize the original image
new_image = congrid(orig_image, resolution[0], resolution[1])

# Display the new image
window, XSIZE=resolution[0], YSIZE=resolution[1]
tv, new_image
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3D velocity vectors
Next Topic: vectorising versus loops

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

Current Time: Fri Oct 10 13:00:06 PDT 2025

Total time taken to generate the page: 0.40345 seconds