asp.net 中图片加水印的问题
protectedvoidAddWater(stringPath,stringPath_sy){stringname2="卡乐广告有限公司";System.Drawing...
protected void AddWater(string Path, string Path_sy)
{
string name2 = "卡乐广告有限公司";
System.Drawing.Image image = System.Drawing.Image.FromFile(Path);
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(image);
g.DrawImage(image, 0, 0, image.Width, image.Height);
System.Drawing.Font f = new System.Drawing.Font("微软雅黑", 6, System.Drawing.FontStyle.Bold);
System.Drawing.Brush b = new System.Drawing.SolidBrush(System.Drawing.Color.FromName());
g.DrawString(name2, f, b, 543, 214);
g.Dispose();
image.Save(Path_sy);
image.Dispose();
}
(System.Drawing.Color.FromName()); 怎么才能向这里添加#443B34 这个颜色
非常感谢
能不能写详细点 我不太明白。。。 展开
{
string name2 = "卡乐广告有限公司";
System.Drawing.Image image = System.Drawing.Image.FromFile(Path);
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(image);
g.DrawImage(image, 0, 0, image.Width, image.Height);
System.Drawing.Font f = new System.Drawing.Font("微软雅黑", 6, System.Drawing.FontStyle.Bold);
System.Drawing.Brush b = new System.Drawing.SolidBrush(System.Drawing.Color.FromName());
g.DrawString(name2, f, b, 543, 214);
g.Dispose();
image.Save(Path_sy);
image.Dispose();
}
(System.Drawing.Color.FromName()); 怎么才能向这里添加#443B34 这个颜色
非常感谢
能不能写详细点 我不太明白。。。 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询