At 11:43 am -0700 21/3/02, Dar Scott wrote: >If I create a pristine image I can get the alphaData and do >reasonable things with it. I can get it with these: > >put the alphaData of image "Test Image" into x >put the alphaData of image "Test Image" into field "Image Data" > >However, after I paint on the image, "put the alphaData" copies a >bad string. No, I don't mean the bytes were not what I expected, I >mean the string itself did not behave as I expected. > >"char 1 of the alphaData ..." and "the length of the alphaData..." >seem to work OK. The problem seems to be after the copy by "put". > >In one case of a 4X4 image, 15 characters showed up in the field >display, but the length returned 4 (should be 16). I could >right-arrow over the characters but left-arrow got stuck part way. > >In one case of a 50X50 image, lots and lots of characters showed up >on the screen but the length was zero. The value acted empty for >"char 1 of" and other functions, too. A variable acted empty also.
The alphaData and imageData return binary data, not text, which accounts for the odd behavior when put into a field. If you want to manipulate this data, it's best to leave it in a variable or custom property. Cheers Dave Cragg _______________________________________________ improve-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/improve-revolution
