How can I display a PNG file?? [message #23145] |
Wed, 10 January 2001 03:10 |
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)
------------------------------------------------------------ -----------
|
|
|