关于图片叠加字符问题 seeCreating a Watered Photograph with GDI+ for .NEThttp://www.codeproject.com/csharp/water.asp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你先用bitmap對象把圖片打開.再用drawtext繪制文字 System.Drawing.Image image = System.Drawing.Image.FromFile( Server.MapPath( imgPhyName ) );System.Drawing.Image newImage = new Bitmap( image.Width, image.Height, PixelFormat.Format32bppRGB );Graphics graphics = Graphics.FromImage( newImage );graphics.DrawImage( image, 0, 0,image.Width, image.Height );Font font = new Font( FontType.SelectedItem.Text, Int32.Parse( FontSize.SelectedItem.Text ) );Brush brush = new SolidBrush( Color.Red );graphics.DrawString( "Hello,World!", font, brush, 10, 140 );graphics.Dispose();newImage.Save( Server.MapPath( newImgPhyName ), ImageFormat.JPEG ); 各个节在每个配置文件中只能出现一次 数据流与图片转换 求一正则,判断字符串没有重复的字符 求大大帮我看下这代码哪出问题了 关于richtextbox内容的行数! C#什么字符串类是非Unicode编码的? 怎么样才能获得本机ip? 请问在 C# 下怎样在激活一个窗口的时候同时激活另一个窗口 高手帮忙:关于C#的SQL连接的数据库的移动 vs2005编辑并继续功能不能用 如何用正则表达式提取一个Html文件中的所有超链接? 快捷键的设定
再用drawtext繪制文字
System.Drawing.Image newImage = new Bitmap( image.Width, image.Height, PixelFormat.Format32bppRGB );
Graphics graphics = Graphics.FromImage( newImage );
graphics.DrawImage( image, 0, 0,image.Width, image.Height );
Font font = new Font( FontType.SelectedItem.Text, Int32.Parse( FontSize.SelectedItem.Text ) );
Brush brush = new SolidBrush( Color.Red );
graphics.DrawString( "Hello,World!", font, brush, 10, 140 );
graphics.Dispose();
newImage.Save( Server.MapPath( newImgPhyName ), ImageFormat.JPEG );