我也很想知道在ASP里面可以画图不
这个是ASPX的
AA.ASPX
[CODE]<%@ Import NamesPace="System.Drawing" %>
<%@ import namespace="system.drawing.drawing2d" %>
<%@ import namespace="system.drawing.imaging" %>
<%@ page language="vb" contenttype="image/jpeg" %>
<script language="vb" runat="server">
protected overrides sub onload(byval e as system.eventargs)
response.clear()
dim bmp as new bitmap(200,100,pixelformat.format24bpprgb)
dim g as graphics
g=graphics.fromimage(bmp)
g.fillrectangle(system.drawing.brushes.white,0,0,200,100)
dim lingrbrush as new lineargradientbrush(new point(0,0),new point(200,100),color.fromargb(255,0,0,255),color.fromargb(255,0,255,0))
g.fillellipse(lingrbrush,0,0,200,100)
bmp.save(response.outputstream,imageformat.jpeg)
g.dispose()
bmp.dispose()
end sub
</script>[/CODE]