<Script Runat="Server">
sub Page_load
dim objbitmap as Bitmap
dim objGraphics as Graphics
dim objBrush as SolidBrush
dim objfont as New Font("Arial",16)
objBitmap = new Bitmap(400,200)
dim objformat as new stringformat()
objGraphics=Graphics.fromImage(objBitMap)
dim objrec as rectanglef=new rectanglef(10,10,300,200)
objbrush=new solidBrush(color.Fromargb(80,132,234))
objgraphics.drawstring("234234234234234",objfont,Brushes.blue,objrec,objformat)
Response.ContentType="image/jpeg" OBJgraphics.dispose()
objbitmap.dispose()
' objbitmap.save(response.outputstream,imageformat.gif)
end sub
输除了还是不行
sub Page_load
dim objbitmap as Bitmap
dim objGraphics as Graphics
dim objBrush as SolidBrush
dim objfont as New Font("Arial",16)
objBitmap = new Bitmap(400,200)
dim objformat as new stringformat()
objGraphics=Graphics.fromImage(objBitMap)
dim objrec as rectanglef=new rectanglef(10,10,300,200)
objbrush=new solidBrush(color.Fromargb(80,132,234))
objgraphics.drawstring("234234234234234",objfont,Brushes.blue,objrec,objformat)
Response.ContentType="image/jpeg" OBJgraphics.dispose()
objbitmap.dispose()
' objbitmap.save(response.outputstream,imageformat.gif)
end sub
输除了还是不行
解决方案 »
- 求高人指点,
- GridView 中控件的问题
- winform中的DataGridView用什么方法将某行设为选中状态?
- 系统打包安装后遇到引用webservice错误的问题。往高手帮助!在线等!急!急!急!急!
- [100分]求一套用Jmail发送和接收邮件的源码~~重要的是接收啊~!!!
- **************真见鬼了!我的vs2003.net见鬼了!
- DataGrid模板列的取值问题!
- 简单问题,马上结贴给分:怎样替换字符串中的\r\n!!!!!!!
- 如何实现,判定数据库中的某一个数据表不存在时输出“表不存在”
- 为什么客户端浏览器总出错误?
- 用javascript实现不postback,从而减少客户端与服务器的交互(只有formload时候的一次)。
- 如何在一个存在的cookies集合里面增加一个子cookie
Dim objGraphics As Graphics = Graphics.FromImage(objBmp)
objGraphics.SmoothingMode = SmoothingMode.HighSpeed 'Fill the box
objGraphics.Clear(Color.Chartreuse) 'Draw the oval
objGraphics.DrawArc(New Pen(Color.Yellow, 3), 20, 75, 125, 70, 0, 360) 'Draw the text
objGraphics.DrawString("ASP.NET", New Font("Times New Roman", 48, FontStyle.Bold), SystemBrushes.WindowText, New PointF(10, 80)) 'The physical path to save to
Dim sPath As String = Request.PhysicalApplicationPath 'The new filename
Dim sFileName = GetTempName("jpg") 'Save and bind it
objBmp.Save(sPath & "graphics\" & sFileName, ImageFormat.Jpeg)
Image1.ImageUrl = "graphics\" & sFileName objGraphics.Dispose()
objBmp.Dispose()
End Sub