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 
Switch to threaded view of this topic 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
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Fri Oct 10 17:28:21 PDT 2025

Total time taken to generate the page: 0.53855 seconds