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

Home » Public Forums » archive » Re: converting window into a image
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: converting window into a image [message #47017 is a reply to message #47016] Wed, 18 January 2006 10:13 Go to previous messageGo to previous message
savoie is currently offline  savoie
Messages: 68
Registered: September 1996
Member
David Fanning <davidf@dfanning.com> writes:

> You can find TVREAD here:
>
> http://www.dfanning.com/programs/tvread.pro
>
> You can pretty much save the file in any format you like.
> Just set the appropriate keyword.


O.k. everyone, I'm a huge fan of the tvread(). But I want to know is, is
there a way to force white to actually be white when writing a png?

When I start my idl session, I use Liam's excellent startup ideas for setting
windowing and color.

device, true=24
window, /free, /pixmap, colors=-10
wdelete, !d.window
device, retain=2, decomposed=0,set_character_size=[10,12]
device, get_visual_depth = depth


So then say for example, I'm running these commands.

x = indgen( 50 )
y = sin( x )
plot, x, y, BACKGROUND= fsc_color( 'white', 250 ), color= fsc_color( 'black', 251 )
x = tvread(/png, FILENAME= "test", /NODIALOG,quality=100)

When I examine the output png, the background is not white, but
some combination of R:255, G: 251, B:255., and R:247, G:256, B:247, etc...

It doesn't matter on the screen, but when I print out my plots, they come out
with a green or yellow tint and against the white margins, they just look
kinda yucky.

Can anyone help? Did I miss that tutorial?

Thanks
Matt


--
Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
[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
Previous Topic: Re: iTools Data Manager
Next Topic: Re: Linux Help Needed

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

Current Time: Sun Oct 12 04:46:17 PDT 2025

Total time taken to generate the page: 0.96541 seconds