C# 后台图片写字体
private void DraweImage()
{
//Image image = Image.FromFile(Server.MapPath("Resources/images/logo.jpg"));//读取图片
//Graphics g = Graphics.FromImage(image);//创建画笔
//g.DrawImage(image, 0, 0, image.Width, image.Height);//画图
//SolidBrush drawBrush = new SolidBrush(Color.FromA#01154f);//创建刷子
//Font drawFont = new Font("微软雅黑", 13, FontStyle.Regular);//设置地体
//int xPos = 179; int yPos = 12;//设置位置
////g.DrawString(this.LoadUserName, drawFont, drawBrush, xPos, yPos);//写字
//image.Save(Server.MapPath("Resources/images/logocs/" + this.LoadUser.Login + ".jpg"));//保存
////g.Dispose();//释放资源
//image.Dispose();//释放资源
//tabMain.Attributes.Add("style", "background:#d2e6fe url(Resources/Images/logocs/" + this.LoadUser.Login + ".jpg) no-repeat;height: 100%; overflow: hidden;");
}