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

Home » Public Forums » archive » ION script - true colour
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
ION script - true colour [message #48300] Mon, 10 April 2006 10:15 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Is it possible to use true colour with ION script? My program make an
RGB output which ION handles like this...

IDL> set_plot, 'Z'
IDL> device, SET_RESOLUTION=[320,256]

...code...

IDL> ion__img = tvrd()
IDL> tvlct, ion__r, ion__g, ion__b, /GET
IDL> ion__tmp = bytarr(3, 320, 256)
IDL> ion__tmp[0, *, *] = ion__r[ion__img]
IDL> ion__tmp[1, *, *] = ion__g[ion__img]
IDL> ion__tmp[2, *, *] = ion__b[ion__img]
IDL> ion__img = ion__tmp
IDL> !QUIET = 1
IDL> write_jpeg, 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ion1452.jpg',
ion__img, TRUE=1

which is assuming that I'm using a colour table. Comes out b/w. You can
choose between png8, png24 and jpeg24, but they all do the same. Don't
seem to be any true options for the ION_IMAGE tag.

regards,
Greg
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: power law fitting for errors on both coordinates
Next Topic: Re: IDL routine to calculate slope and aspect from elevation grid?

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

Current Time: Fri Oct 10 01:41:52 PDT 2025

Total time taken to generate the page: 0.71817 seconds