Re: write_jpeg and TVRD() [message #31351] |
Sat, 29 June 2002 15:25 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
rc (r_cherukuru3@yahoo.co.uk) writes:
> I had generated a colourful plot and i had been trying to save this
> by writing it into a jpg file using write_jpeg, but somehow i could
> only save a grey scale plot!!!
>
> My program looks something like this::
>
> plot,x
>
> oplot,y,color=10000
> oplot,z,color=100000
>
> write_jpeg,'myplot.jpg',tvrd()
>
> Can anyone tell me, what is the missing part in my line which may help
> me in saving my plot with colors?
Well, there are a lot of possibilities for why this
doesn't work. I would download my TVREAD program and solve
your problem like this:
dummy = TVREAD(/jpeg, Filename='myplot.jpg', /NoDialog)
Then, if you are curious to see how it is done, look
into the code.
http://www.dfanning.com/programs/tvread.pro
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|