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

Home » Public Forums » archive » PNG 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
PNG IMAGE [message #66712] Wed, 03 June 2009 06:09
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi all,

I'm trying to read a PNG image and visualize it in an IDLgrImage. I
can not do it and I don't know why. Normally, I do something like
this:

image=READ_PNG('my_image.png',red,green,blue)
oPalette = OBJ_NEW('IDLgrPalette', red, green, blue)
oImage = OBJ_NEW('IDLgrImage', image, PALETTE = oPalette)

It works but my problem now is that I can not retrieve the red, green
and blue channels from the image, so:

image=READ_PNG('my_image.png',red,green,blue)
help

image BYTE = Array[3, 24, 24]
blue UNDEFINED = <Undefined>
green UNDEFINED = <Undefined>
red UNDEFINED = <Undefined>

How can I display this image in OBJECT GRAPHICS ?
Thanks in advance,

nata
[Message index]
 
Read Message
Previous Topic: ENVI Log Manager
Next Topic: Re: PNG IMAGE

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

Current Time: Sun Oct 12 05:11:29 PDT 2025

Total time taken to generate the page: 2.32070 seconds