CSDN博客

img saihoo

asp生成图片

发表于2004/6/25 10:53:00  1976人阅读

<%@ Language=javascript %>
<%
//一个最简单的例子
//可广泛应用于计数器、时钟等任何需要动态生成图形的地方
//通过改变ContentType的值,比如改为 "image/gif"可以作出更漂亮的图形

Response.ContentType ="image/x-xbitmap";
Response.Write ("#define counter_width 8/r/n");  //图形宽
Response.Write ("#define counter_height 10/r/n");//图形高
Response.Write ("static unsigned char counter_bits[]={/r/n");
Response.Write ("0x3c,0x66,0x60,0x60,0x30,0x18,0x0c,0x06,0x06,0x7e");//2的掩码
Response.Write ("};/r/n");

%>

阅读全文
0 0

相关文章推荐

img
取 消
img