bytebug@dhw68k.cts.com (Roger L. Long) (06/30/89)
[Macintosh Technical Notes - 241 Script Manager's _Pixel2Char] Written by: Sue Bartalo June 1989 This Technical Note discusses the _Pixel2Char trap provided by the Script Manager. --- (This file must be converted with BinHex 4.0) :#941-M3a,R0TG!"6593K8dP8)3#3""R+!*!%c6K6593K!!%!!"R+FNaKG3%!N!J #(941,M)d-5j6Bh*TF(3J6@Gb)&p3DAKPE$*$D'&b!*!$4$MF!!%!5D('!%E)c!" +#h)$FJ%+!#B!!3#3!dQKi&G28N40380"!3#JNm#"S,"pp!#3"Lbm!*!''83!!,0 V!*!'qaS!$!$S!#!!!!)!%[jEq)pI`B3X#!(!-6%K"@`!8'4-Z))H!!3!"L3%J)6 N5!!#Y!P!m5rF2h%#mJN`-Z")!43$(!SB@E,Nb*3V(bBN-p*JJ+0&qb3d1K%DZiR 4m!!D-9)"J!`")*d%!'6V5B0H`ii8UC&XdB3TS(&&b`X!"3!B!Z$k*`m!2ES"K2N cSC!!i8+KJ!(m"D!#!J$$"eQKT![!"11lm[,Z(HRh(f#`C`R6#U#@-!J!P"JlVJX jldR,IK-+i$$!)!Tj2f6-Ha*M(UJ(8iMj!8(2QJelFCj8!e6[(j3rH$6-Hc(%eT- %A4l)#*M3UPX!AVjShmkpZrI[i-1,(dqq[2B'e!&BIcZPhK)m$kK`Q-9(c3-R8L" FBR325b"!+d"3h((*,GFF%#5ii8!4pj`4#56f[*!!K`#ai+BEEli"pi3,m(3Q38) -@!5!##%#B!%!,C6iPJMed#&(#$"%Q-FmVb43c`pe3%#2#8+Sm88#p,a54``2e2B *$[0mJPjk+KDdT%!!0$N#E,,44U102"`KcJ00M2(''46dJm8$Ap4c`$f"[#)$26Z 3!0&KHK)Bp0B6jY9Tjjef0R!&Nb)Q%%!h)Sf8J!!(%'TSSBJHULLL!2J*+'Cq#L1 !#C1+C@P#8IcCQU!"-,,STiQ'kQ4#8$C*+SKb0NE2'IEm88F34IC$TTPSUXNQ'3m `BF%P2ja"6a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