[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RGB image to 8 bit ??
- Subject: Re: RGB image to 8 bit ??
- From: davidf(at)dfanning.com (David Fanning)
- Date: Fri, 10 Sep 1999 08:05:36 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <37D7F0DD.A3B82D7A@sbrc.umanitoba.ca> <37D7F6B5.13AFBDA@ssec.wisc.edu> <MPG.firstname.lastname@example.org> <37D82D3E.367DBD3D@ssec.wisc.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:16494
Liam Gumley (Liam.Gumley@ssec.wisc.edu) writes:
> That said, I also think a 24-bit capable version of XInteranimate would
> be useful.
You know, as soon as I sent that post yesterday I started worrying
that I may had gotten it wrong. I remember wanting to display
24-bit images in XInteranimate, and I remember looking at the
code, and I remember that whatever I did was very simple, but
I couldn't q-u-i-t-e remember what I actually did. So I went
back this morning and looked at the code. And it turns out
I did *nothing*!
That's right. XInterAnimate is *already* 24-bit image
compliant. [Sorry, RSI. :-(]
Actually, it is the fact that XInterAnimate uses the
Device Copy technique of transferring each image frame
from its pixmaps to the display window that makes it
so. This technique doesn't care *what* is in the window,
it just transfers the "bits", if you like.
So, you use XInterAnimate with 24-bit images, all you have
to do is load them properly:
XInterAnimate, /ShowLoad, Set=[512, 512, 15]
For J=0, 14 DO BEGIN
TV, image24[j], True=1
XInterAnimate, Frame=j, Window=!D.Window
It is true that you can't use the IMAGE keyword, and that
is a shame, but this may be the preferred solution anyway,
since you don't have to do any COLOR_QUANing at all to use
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: email@example.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155