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

Home » Public Forums » archive » write_ppm (newbie)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
write_ppm (newbie) [message #24940] Thu, 03 May 2001 09:38
Craig John Wallace is currently offline  Craig John Wallace
Messages: 1
Registered: May 2001
Junior Member
Hi

I'm a little stuck with the write_ppm function in IDL5.4, can anyone help?

I know the syntax for the function follows:

write_ppm, filename, image

where image contains the info on what you want to write.
So far I have been specifying image as...

image=tvrd()

...and then writing the write_ppm function.

Trouble is this only seems to write is as a gray-scale image, and if I
try....

write_ppm,filename, tvrd(),r,g,b

(having done tvlct,/get,r,g,b)

..IDL won't have it, as there are the incorrect number of arguements
following the function. How can I get a color ppm?

Thanks in adavnce to those who reply

Cheers

Craig


---------------------------------------------
Craig Wallace Craig.Wallace@uea.ac.uk
Postgraduate, Climatic Research Unit,
University of East Anglia,
Norwich, Norfolk, NR4 7TJ, ENGLAND

Tel: (01603) 592702

http://www.uea.ac.uk/~f907076/
---------------------------------------------
[Message index]
 
Read Message
Previous Topic: Re: Displaying a plot and a true color image on the same window
Next Topic: Re: motion detection and tracking

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

Current Time: Wed Oct 08 13:44:41 PDT 2025

Total time taken to generate the page: 0.00449 seconds