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

Home » Public Forums » archive » More Questions on 24 bit color
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: More Questions on 24 bit color [message #13512 is a reply to message #13336] Sat, 14 November 1998 00:00 Go to previous message
Reinhold Schaaf is currently offline  Reinhold Schaaf
Messages: 10
Registered: March 1998
Junior Member
I have to admit: I love this newsgroup! More often than not, when I try
to figure out by myself how this or that might work: Presto, there is a
thread in idl-pvwave, where my current problem is discussed!

However, this time some question remained. I have the problem to export
line plots, which are produced by IDL with direct graphics, in some
format that allows the plots to be imported into Word documents (I am
working under NT). Since I cannot assume a postscript printer, exporting
eps-Files is no option. I tried to copy the graphics into the Windows
clipboard and to paste them into the Word document, which worked; but
since I want printer output at a reasonable quality (300 dpi) and since
the size of the plot on the paper has to be not too small (6 inch x 4
inch), this procedure is too memory intensive to be useful.

So I ended up exporting the plot as a gif-file, which can be imported to
Word easily. David's advise in this thread came exactley at the right
time for me, so everything is fine:

x = FINDGEN(101)
y = SIN(x/10)

red = [0, 1, 1, 0, 0, 1, 1, 0]
green = [0, 1, 0, 1, 0, 1, 0, 1]
blue = [0, 1, 0, 0, 1, 0, 1, 1]
TVLCT, 255*red, 255*green, 255*blue

DEVICE, DECOMPOSED=0

PLOT, x, y, BACKGROUND=1, COLOR=6
snapshot = TVRD(True=1)
image2D = COLOR_QUAN(snapshot, 1, r, g, b, COLORS=256)
WRITE_GIF, 'test.gif', image2D, r, g, b

and everything is fine.

But, although the plot in the IDL-window is white (I mean: *really*
white), the background color in the gif-image is not *really* white,
but instead a light grey.

More precisely:

white has RGB values 248,248,248 (instead of 255,255,255)
magenta has 248,0,248 (instead of 248,0,248)

Any suggestions (both to the gif color problem and to the export-import
scheme)?

Thankx in advance!

Reinhold

--
************************************************************ *
Reinhold Schaaf
Ettighofferstr. 22
53123 Bonn
Germany

Tel.: (49)-228-625713
Email: schaaf@astro.uni-bonn.de
************************************************************ *
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cylindrical map projection screwed up?
Next Topic: Where should I put a preferences file?

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

Current Time: Sat Oct 11 04:41:46 PDT 2025

Total time taken to generate the page: 0.23984 seconds