You are here: Re: Jeckyl Gets Curb Stomped By Dat Mean 'Ol Mad Hatter « All PHP « IT news, forums, messages
Re: Jeckyl Gets Curb Stomped By Dat Mean 'Ol Mad Hatter

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация