直播中
'函數(shù)1:
'將字符串轉(zhuǎn)換成二進(jìn)制
Function StoB(varstr)
str2bin = ""
For i = 1 To Len(varstr)
varchar = Mid(varstr, i, 1)
str2bin = str2bin & ChrB(AscB(varchar))
Next
StoB = str2bin
End Function
'函數(shù)2:
'將每兩個(gè)字符前面加"&H"表示是十六進(jìn)制,然后把"&H??"加到"chr()"里面
'具體功能是什麼,我也說不清,反正是必須的
Function SS(varstr)
BB = ""
For i = 1 To Len(varstr)/2
varchar = "&H" & Mid(varstr, 2*i-1, 2)
BB=BB & chr(varchar)
Next
SS = BB
End Function
img="00001414faf5f0fb6df0fbadf0fbdd801bfc70e71fe07ce7d0bbfbd0dbfbb0d7fd70b7fdb077f5d0fbebe0fbdbf01ce780c71c70f7fdf0f7bff0f65df0f5edf00"
'這段字符串的含義參考我以前的帖子
'當(dāng)然也可以由程序根據(jù)數(shù)據(jù)自動(dòng)生成這段字符串,前提是你了解這段字符串的含義并有足夠的耐心,想想吧,生成一個(gè)100X100的
圖片,要由1250個(gè)類似"F0"的字符組成!
Response.ContentType="image/vnd.wap.wbmp"
Response.BinaryWrite stob(ss(img))
'試一下吧,好象不是很象太陽,simple怎麼說是太陽的圖案,或許他畫圖的能力比較差吧:)%>