Re: Regarding READ_BMP - Just starting out, please help [message #13667] |
Thu, 19 November 1998 00:00 |
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.]
|
|
|