<P>也是幫個朋友問的。。我的代碼是加文字水印的。。文字就在上面了。??墒强蛻舴且胪该魑淖值?。。我是找不到了。。尋求幫助了。。</P> <P>------</P> <P> public void shuiyin()<BR> {<BR> System.Drawing.Bitmap image = new System.Drawing.Bitmap(Server.MapPath("shuiyin/shuiyintu.jpg"));<BR> Graphics g = Graphics.FromImage(image);<BR> System.Drawing.Drawing2D.LinearGradientBrush brush = new System.Drawing.Drawing2D.LinearGradientBrush(new Rectangle(0,0,image.Width,image.Height),Color.Red,Color.Red,1.2f,true);<BR> Font font1 = new Font("宋體",22);<BR> g.DrawString("彭彭水印",font1,brush,1,1);<BR> g.Save();<BR> image.Save(Server.MapPath("shuiyin/shuiyintu1.jpg"));<BR> }</P> <P>-----</P> <P>這個是偶的加水印文字的代碼。。求透明文字代碼。。分不在多。。學習當先。。</P>
Vs2003下C# 圖片加水印 半透明文字?
慕田峪7331174
2018-12-16 17:09:26