<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: Fun With ImageData, MaskData and
AlphaData</title></head><body>
<div>Ken,</div>
<div><br></div>
<div>Thanks for sharing these functions about imageData, etc....they
were always in the arena of "when I might have some
time"...but now they are quite within my grasp!</div>
<div><br></div>
<div>Two items:</div>
<div><br></div>
<div>1. The order that you had in your example for making the 50%
transparent blue image:</div>
<div><br></div>
<div><font face="Courier New" size="+2" color="#000000">repeat with i
= 1 to 400<br>
put binaryEncode("CCCC",255,0,0,0)
after iData<br>
put binaryEncode("C",128) after
aData<br>
end repeat</font></div>
<div><br></div>
<div>did not work for me on my Mac, using 2.3.2</div>
<div><br></div>
<div>I had to switch the order:</div>
<div><br></div>
<div><font face="Courier New" size="+2" color="#000000">repeat with i
= 1 to 400</font></div>
<div><font face="Courier New" size="+2"
color="#000000"> put
binaryEncode("CCCC",0,0,0,255) after iData</font></div>
<div><font face="Courier New" size="+2"
color="#000000"> put
binaryEncode("C",128) after aData</font></div>
<div><font face="Courier New" size="+2"
color="#000000"> end repeat</font></div>
<div><br></div>
<div>2. Just for fun - I added a red-to-blue gradient..you can add to
your page if you so desire!</div>
<div><br></div>
<div>(this is for a 16 x 16 image - will require some more
calculations for other images)</div>
<div><br></div>
<div>repeat with i = 1 to 256<br>
put
binaryEncode("CCCC",0,min(i,255),0,max(255,255-i)) after
iData<br>
put binaryEncode("C",128) after
aData</div>
<div> end repeat</div>
<div><br></div>
<div>Thanks again - your work is most appreciated!</div>
<div><br></div>
<div>-ml</div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div>Mark J. Luetzelschwab<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>luetzm@texasreading.org <br
>
Texas Center for<x-tab>
</x-tab><x-tab>
</x-tab><x-tab> </x-tab>(v)
(512) 232 9477<br>
Reading and Language Arts<x-tab>
</x-tab><x-tab> </x-tab>(f)
(512) 232 2322<x-tab>
</x-tab><x-tab> </x-tab><br>
http://www.texasreading.org</div>
</body>
</html>