write_ppm (newbie) [message #24940] |
Thu, 03 May 2001 09:38 |
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/
---------------------------------------------
|
|
|