on Thu, 27 Sep 2001 12:55:53, Richard Gaskin <[EMAIL PROTECTED]> wrote:
> The data is very conveniently presented in imagedata: just get the > chartonum of every four characters, discared the first one (always zero) and > you've got an RGB triplet. > > Now here's my question: What's the most efficient way to parse a chunk of > data into every four characters and discard the first one? So many ways to > slice that one, and I haven't had time lately to run routines through > MetaBench.... > Hmmm. What about... repeat with i = 1 to length(tstr) div 4 put char 4*i-2 to 4*i of tstr into item i of tparsed end repeat Raymond > -- > Richard Gaskin > Fourth World Media Corporation > Multimedia Design and Development for Mac, Windows, UNIX, and the Web > _____________________________________________________________________ > [EMAIL PROTECTED] http://www.FourthWorld.com > Tel: 323-225-3717 AIM: FourthWorldInc Fax: 323-225-0716 Archives: http://www.mail-archive.com/[email protected]/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.
