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

Home » Public Forums » archive » Re: write_jpeg and TVRD()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: write_jpeg and TVRD() [message #31351] Sat, 29 June 2002 15:25
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Defining constants in IDL?
Next Topic: Re: large arrays and transpose

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

Current Time: Wed Oct 08 18:41:51 PDT 2025

Total time taken to generate the page: 0.00422 seconds