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

Home » Public Forums » archive » Re: Regarding READ_BMP - Just starting out, please help
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Regarding READ_BMP - Just starting out, please help [message #13667] Thu, 19 November 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Jimmy Hong (hongj@cs.ucla.edu) writes:

> I'm just starting out with IDL and have a question about the
> READ_BMP function. I do the following:
>
> TV, READ_BMP('Forest.bmp', r, g, b)
> TVLCT, r, g, b
> END
>
> and get the image, but with no color! I've been tearing my hair out about
> this because I'm doing exactly as the reference guides and online help says
> I should. I've also tried this with 16 color, 256 color, and 24-bit color
> bitmaps... no results. Please help.

Uh, let me guess. Try this:

IDL> Device, Decomposed=0
IDL> image = Read_BMP('Forest.bmp', r, g, b)
IDL> TVLCT, r, g, b
IDL> TV, image

Better? :-)

Cheers,

David

P.S. You can find a lot of good information about using color
in IDL on my web page.

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155

[Note: This follow-up was e-mailed to the cited author.]
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Playing sounds through IDL
Next Topic: Regarding READ_BMP - Just starting out, please help

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

Current Time: Fri Oct 10 06:47:00 PDT 2025

Total time taken to generate the page: 1.59963 seconds