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

Home » Public Forums » archive » Re: IDL color problem in linux
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: IDL color problem in linux [message #39296] Thu, 06 May 2004 10:38
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Rama wrote:

> I have been running some IDL codes on SGI IRIX machine
> to generate some colored JPEG plots. I use the following
> commands for color:
>
> device, decomposed=0
> LoadCT, 2
> red=[1,0,1,0,0,1] & green=[1,0,0,1,0,1] & blue=[1,0,0,0,1,0]
> tvlct, 250*red, 250*green, 250*blue; white=0,black=1,red=2,green=3,
> ; blue=4, yellow=5
>
>
> Then after creating the plot, I generate the JPEG as follows:
>
> image=tvrd(true=1)
>
> write_jpeg, 'test.jpg', image, true=1, quality=75
>
> These worked very well when I executed the IDL code on SGI IRIX
> machine. However, it is failing in LINUX platform. If some one could
> give some helpful suggestions I would be highly grateful.

Please give some more information about your idl version and the color depth
of the linux box.

I have this statements in my idl startup file an I am using 16bit color
depth.

device, true_color=16
window, /free, /pixmap, colors=-10
wdelete, !d.window
device, decomposed=0, retain=2
p.background=255
!p.color=0


Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Previous Topic: widget_table: width of row label column
Next Topic: Announcing GDL 0.8, now with netCDF support

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

Current Time: Wed Oct 08 13:41:50 PDT 2025

Total time taken to generate the page: 0.00450 seconds