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

Home » Public Forums » archive » jpegs and tiffs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
jpegs and tiffs [message #57820] Mon, 24 December 2007 17:33
Josh is currently offline  Josh
Messages: 21
Registered: June 2007
Junior Member
The following program is supposed to write two sine waves, a blue one
and a black one, to two different files. However, on my system, the
jpeg ends up with two black sine waves, whereas the tiff (as well as
the window on the screen) end up with a blue one and a black one as
desired. Any thoughts? Code is taken from Gumley, but with many
changes.

PRO TEST

black = '000000'XL
white = 'FFFFFF'XL
blue = 'FF0000'XL

device, decomposed=1

plot, sin(findgen(200) * 0.1), color = black, background = white
oplot, sin(findgen(200) * 0.1 + 0.2), color = blue
image = tvrd(true=1)
write_jpeg, 'out.jpg', image, true=1
write_tiff, 'out.tif', reverse(image, 3), 1

END
[Message index]
 
Read Message
Previous Topic: Re: How to print tickname in exponential format as '10^2'
Next Topic: How to change the menu langauge for IDL v7.0?

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

Current Time: Sat Oct 11 03:34:58 PDT 2025

Total time taken to generate the page: 1.03664 seconds