别指望客户端装,只有图片保险...
------解决方案--------------------
if (Request.QueryString["text"] != null) { string str = Server.UrlDecode(Request.QueryString["text"].ToString()); FontFamily ff = new FontFamily("汉真广标"); Font font = new Font(ff, 50); Bitmap bmp = new Bitmap((int)(str.Length * font.Size)+150, 100);
Graphics g = Graphics.FromImage(bmp); g.FillRectangle(Brushes.Yellow, 0, 0, bmp.Width, 100); g.DrawString(str, font, Brushes.Red, new PointF(10, 10));