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);
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);
浙公网安备 33010602011771号