@Alejandro and Alex.

All that limit checking is not needed here. It is much faster,
especially for fast images,to do a few unneeded additions than
to do all these checks for each pixel.

I translated my js-function into LC Script, using Alejandro's
variable names and (inline) Alex's array creation method. See
http://forums.livecode.com/viewtopic.php?p=159244#p159244

You certainly can improve this LCS script even more. In javascript
this is so fast that even for large images there is no gain by
'optimization'.

p.s. Al, you don't need a "try". Just use (where 3 = step-1)
repeat with i = 1 to the number of bytes in tempVar - 3 step 4


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to