Posted by Jeckyl on 01/21/07 22:03
Yeup .. you've got it wrong.
> : color_pick = _root.img_base.getPixel(i,1).toString(16);
> : b = color_pick & 255; color_pick >>= 8; g = color_pick & 255;
> color_pick >>= 8; r = color_pick & 255;
You don't need the convert to hex .. with the "toString(16)" ... that was
the point (to do it without hex conversions) , and part of what you're not
getting as fast a result.
Perhaps if you'd read the code I'd posted you'd see that.
change you code to
: color_pick = _root.img_base.getPixel(i,1);
: b = color_pick & 255; color_pick >>= 8; g = color_pick & 255; color_pick
>>= 8; r = color_pick & 255;
and it should be ok.
--
Jeckyl
Navigation:
[Reply to this message]
|