asp.net消除锯齿的办法

 终于找到asp.net消除锯齿的办法

  Bitmap bt1 = new Bitmap(300,350,PixelFormat.Format24bppRgb);
   Graphics g = Graphics.FromImage(bt1);
   g.TextRenderingHint = TextRenderingHint.AntiAlias; //关键是这一句
   g.DrawString("你好吗",font,new SolidBrush(Color.White),10,10);
   //g.Clear(Color.White);
   bt1.Save("11212.jpg",ImageFormat.Jpeg);
posted @ 2006-10-07 22:27    阅读(555)  评论(0)    收藏  举报