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

Home » Public Forums » archive » Color BMP problems
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: Color BMP problems [message #11511 is a reply to message #11290] Tue, 31 March 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dave Coulter (dwc@nel.newmont.com) writes:

> This may be due to the Microsoft primary ordering which is BGR not RGB. The
> following code works fine on 16bit/24bit displays under Win95:
>
> save_bmp = 'foobar.bmp'
> bmp_image = TVRD(/TRUE)
> ; change from RGB to BGR for .BMP
> chan_temp = bmp_image[0,*,*]
> bmp_image[0,*,*] = bmp_image[2,*,*]
> bmp_image[2,*,*] = chan_temp
> write_bmp, save_bmp, TEMPORARY(bmp_image)
>
> I have found that Truecolor graphics work great under 5.0.2 - I avoid using
> color tables and color indexes as much as possible.

Now HERE is something I didn't know and wouldn't have figured
out in a long, long time!

Thanks, Dave.

Cheers,

David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: PV-Wave, Fortran & Windows NT
Next Topic: Re: Calling fortran procedures from IDL

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

Current Time: Sun Oct 12 10:05:04 PDT 2025

Total time taken to generate the page: 0.88317 seconds