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

Home » Public Forums » archive » How can I display a PNG file??
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
How can I display a PNG file?? [message #23145] Wed, 10 January 2001 03:10
Miguel Ángel Córd is currently offline  Miguel Ángel Córd
Messages: 11
Registered: March 2000
Junior Member
Hi,
i am using the query_png and the read_png functions to read a png file.
The read_png returns a 4 channel image and i don't know how to display
it.
I execute this commands:

IDL> ok=query_png('intro.png',s)
% Loaded DLM: PNG.
IDL> help,s,/structure
** Structure <780f0>, 7 tags, length=36, refs=1:
CHANNELS LONG 4
DIMENSIONS LONG Array[2]
HAS_PALETTE INT 0
IMAGE_INDEX LONG 0
NUM_IMAGES LONG 1
PIXEL_TYPE INT 1
TYPE STRING 'PNG'
IDL> window,0
IDL> wset,0
IDL> image1=read_png('intro.png')
IDL> tv,image1
IDL> help,image1
IMAGE1 BYTE = Array[4, 629, 288]


Thanks!!

--
------------------------------------------------------------ -----------
Miguel Angel Cordoba cordoba@ehma.upc.es T.934017371
http://campus.uab.es/~2034008

Grup de Modelitzacio Hidrologica (UPC) (http://www.upc.es/ehma/gmh)
------------------------------------------------------------ -----------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: memory allocation for IDL
Next Topic: Re: How can I display a PNG file??

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

Current Time: Wed Oct 08 18:38:33 PDT 2025

Total time taken to generate the page: 0.00614 seconds