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 #32427 is a reply to message #32426] Wed, 09 October 2002 08:09 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Mike Jewison wrote:
> 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.
>
> Many thanks.
>
> - Mike

Dear Mike,
WRITE_JPEG, JPEG_File, TVRD(/true) ,/true

should be used if you are using a true color graphics device.


regards

Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[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 20:54:44 PDT 2025

Total time taken to generate the page: 0.56086 seconds