ImageData Question...

Ken Ray kray at sonsothunder.com
Thu Sep 12 22:04:00 EDT 2002


> It turn out that on the PC, the RGB values are reversed...
> so, instead of 0,R,G,B
> it's B,G,R,0 order
> then a couple of optimizations and minor bugfixes...
> voila! this works.
> Ken, You might make a note on your webpage.

Actually, Chipp, the reversal is only for copies of Revolution or MetaCard
that were released with a MetaCard 2.4.2 or earlier engine (MetaCard 2.4.3
fixed the PC values so they are now returned in the same order as the Mac).
Rev 1.1.1 or earlier and MC 2.4.2 or earlier. Rev 1.5 (based on the 2.4.3
engine) is not reversed on the PC (a gotcha for upgrading, BTW).

I updated my site right after the 2.4.3 release, and now have two separate
tip pages. When you click on the imag003 tip
(http://www.sonsothunder.com/devres/revolution/revolution.htm?_imag003), the
first paragraph mentions the update and the yellow box beneath it says what
version it is for. You can access the "old" tip (the one with the reversed
PC values) at
http://www.sonsothunder.com/devres/revolution/revolution.htm?_imag003orig).
It's possible you may have printed out an old copy of the tip before I
updated the pages...

You might want to check out the Undocumented Bug Fixes and Features page on
the site (http://www.sonsothunder.com/devres/metacard/undocumented.htm) to
see this noted along with a few other things. Note that this is a page for
MetaCard, but it applies to Rev as well.

I did notice, however, that the "Green bit" is correct for character 6 of
the example for the *old* page, but the "Red bit" you mention is correct for
character 6 of the example on the *new* page, and it wasn't updated properly
when I made the two versions. I will make sure I pore over both pages and
make sure they are correct.

Thanks for letting me know,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/





More information about the Use-livecode mailing list