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

Home » Public Forums » archive » Re: 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 #13332 is a reply to message #13330] Tue, 10 November 1998 00:00 Go to previous messageGo to previous message
Kevin Ivory is currently offline  Kevin Ivory
Messages: 71
Registered: January 1997
Member
David Fanning wrote:
> snapshot = TVRD(True=1)
> image2D = Color_Quan(snapshot, 1, r, g, b)
> Write_Gif, 'neat.gif', image2D, r, g, b

I've never really got tvrd() to work on Linux XFree86 with 24 bpp.
I figured it was the same bug that doesn't let me grab a window
correctly with xv or gimp. That why I was quite happy to see David
post a few lines that should work. Alas, I get some kind of an error:

IDL> snapshot = TVRD(True=1)
IDL> help,snapshot
SNAPSHOT BYTE = Array[3, 651, 921]
IDL> image2D = Color_Quan(snapshot, 1, r, g, b)
% COLOR_QUAN: Value of number of colors is out of allowed range.
% Execution halted at: $MAIN$

The message doesn't help me much. Any ideas?
Kevin
--
Kevin Ivory Tel: +49 5556 979 434
Max-Planck-Institut fuer Aeronomie Fax: +49 5556 979 240
Max-Planck-Str. 2 mailto:Kevin.Ivory@linmpi.mpg.de
D-37191 Katlenburg-Lindau, GERMANY http://www.gwdg.de/~kivory2/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: GUI Builder limited to Windows platform (LONG)
Next Topic: Re: using mpfit

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

Current Time: Sun Oct 12 14:56:25 PDT 2025

Total time taken to generate the page: 1.83657 seconds