Creating JPEG files [message #32429] |
Wed, 09 October 2002 07:45 |
m_jewison
Messages: 1 Registered: October 2002
|
Junior Member |
|
|
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
|
|
|