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

Home » Public Forums » archive » Re: Creating JPEG files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Creating JPEG files [message #32428 is a reply to message #32427] Wed, 09 October 2002 08:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mike Jewison (m_jewison@hotmail.com) writes:

> I have a short program which generates a 2D plot using a standard call
> to the PLOT procedure, displaying to the X-windows device. I would
> like to also have this plot dumped to a JPEG file for display on a web
> page. Although the plot looks just fine on the screen, when I issue
> the following command:
>
> WRITE_JPEG, JPEG_File, TVRD()
>
> the resultant JPEG file has very little contrast (i.e. it's basically
> near-black on black). I know the WRITE_JPEG procedure is better
> suited to images rather than plots, but is there (a) a better way to
> create a JPEG file of a plot rather than what I'm doing, or (b)
> another file format which IDL supports that would do a good job of
> creating a web-compatible image format? I used to use the WRITE_GIF
> format until IDL dropped support for it.

Try TVREAD:

http://www.dfanning.com/programs/tvread.pro

You would use it like this:

IDL I = TVREAD(/JPEG)

The results are guaranteed to be perfect. :-)

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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating JPEG files
Next Topic: Re: copying of objects

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

Current Time: Fri Oct 10 15:50:11 PDT 2025

Total time taken to generate the page: 0.71815 seconds