[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
write_ppm (newbie)
- Subject: write_ppm (newbie)
- From: Craig John Wallace <f907076(at)cpca6.uea.ac.uk>
- Date: Thu, 3 May 2001 17:38:23 +0100
- Newsgroups: comp.lang.idl-pvwave
- Organization: University of East Anglia, Norwich, Norfolk, NR47TJ, UK
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:24795
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/
---------------------------------------------