当前位置: 代码迷 >> ASP.NET >> asp.net 透明 文字 水印 如何加
  详细解决方案

asp.net 透明 文字 水印 如何加

热度:727   发布时间:2013-02-25 00:00:00.0
asp.net 透明 文字 水印 怎么加?
我知道一般的加文字水印的方法如下
                                //加文字水印,
                                System.Drawing.Image   image   =   System.Drawing.Image.FromFile(path);
                                Graphics   g   =   Graphics.FromImage(image);
                                g.DrawImage(image,   0,   0,   image.Width,   image.Height);
                                Font   f   =   new   Font( "Verdana ",   32);
                                Brush   b   =   new   SolidBrush(Color.White);
                                string   addText   =   AddText.Value.Trim();
                                g.DrawString(addText,   f,   b,   10,   10);
                                g.Dispose();
                                image.Save(newPath);
                                image.Dispose();

问题:

怎么把水印文字变成透明的.........


------解决方案--------------------------------------------------------
http://aspdognet.com/document/2007/06/5592223
------解决方案--------------------------------------------------------
(a,b,c,d)
a的位置为透明程度,从0到255
  相关解决方案