Binary Data???

Dave dave at looktowindward.com
Tue Feb 13 12:06:34 EST 2007


Hi,

Yes, if the data were 5 x 5 (instead of 512, 512) then all I want is  
a buffer that contains the data:

0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,   5 lots  
of (0,128,0,128 in a line, and 5 lines, making 25 groups of 0,128,0,128)
0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,
0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,
0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,
0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128,0,128

Thanks a lot, I think that should do it! I guess when I have my C  
head on I find it hard to think in TranScript!

All the Best
Dave

On 13 Feb 2007, at 16:30, Mark Smith wrote:

> Dave, could you explain in what you're doing - to my non-C eyes it  
> looks like your'e simply building a 512 * 512 list of bytes of  
> alternating value 0 and 128.
>
> If it's any help, you can do this with <put numToChar(0) & numToChar 
> (128) after tBuffer> the required number of times, but I'm guessing  
> that that is not exactly what you want...
>
> Best,
>
> Mark





More information about the use-livecode mailing list