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

Home » Public Forums » archive » Re: READ_GIF and READ_SRF
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: READ_GIF and READ_SRF [message #882] Fri, 02 April 1993 05:37 Go to previous message
sterner is currently offline  sterner
Messages: 106
Registered: February 1991
Senior Member
dean@phobos.cira.colostate.edu writes:

> I am using READ_GIF and READ_SRF to read GIF and Sun Raster files with
> IDL. The problem I am having is I would like to resize the TV window to
> fit the GIF or raster file. This x and y size information doesn't appear
> with READ_GIF or READ_SRF. Just filename, image, and color. My question
> is, Where can I get the x and y size information about GIF or raster file?
> This information is within the GIF and Sun raster file, but does IDL provide
> it?
> Kelly Dean
> CSU/CIRA

This information is available after you read the image. Just use the
size function to find the image size and set the window. Example:

read_gif, 'example.gif', img, r, g, b
sz = size(img)
window, xs=sz(1), ys=sz(2)
tvlct, r, g, b
tv, img

Ray Sterner sterner@tesla.jhuapl.edu
Johns Hopkins University North latitude 39.16 degrees.
Applied Physics Laboratory West longitude 76.90 degrees.
Laurel, MD 20723-6099
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Logarithmic Z axis on surface plot ?
Next Topic: IMSL/IDL X-windowing Resource Editor?

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

Current Time: Mon Dec 01 06:20:28 PST 2025

Total time taken to generate the page: 2.00593 seconds