如何实现校友录上的图片效果 当用户发一张图片后,我在该图片的右下角自动加上我们网站的logo标志 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 注意:在asp.net中,文件名要用虚拟路径,如:Server.MapPath("/test/test.jpg");/// <summary> /// 在图片上加入图片版权信息 /// </summary> /// <param name="fileName"><seealso cref="原始图片"/></param> /// <param name="copyRightFile"><seealso cref="版权图片"/></param> /// <param name="outfileName"><seealso cref="输出图片"/></param> /// <param name="deleteFile"><seealso cref="是否删除原始图片"/></param> /// <param name="overrideOld"><seealso cref="如果图片存在是否覆盖"/></param> /// <param name="x"><seealso cref="版权图片显示的X轴坐标"/></param> /// <param name="y"><seealso cref="版权图片显示的Y轴坐标"/></param> public void createCopyRightImage(string fileName, string copyRightFile, string outfileName, bool deleteFile, bool overrideOld, float x, float y) { System.Drawing.Image image = System.Drawing.Image.FromFile(fileName); System.Drawing.Image c_image = System.Drawing.Image.FromFile(copyRightFile); System.Drawing.Bitmap outPut = new System.Drawing.Bitmap(image); System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(outPut); g.DrawImage(c_image, x, y); if(System.IO.File.Exists(outfileName)) { if(overrideOld) { System.IO.File.Delete(outfileName); outPut.Save(outfileName, System.Drawing.Imaging.ImageFormat.Jpeg); } } else { outPut.Save(outfileName, System.Drawing.Imaging.ImageFormat.Jpeg); } g.Dispose(); outPut.Dispose(); image.Dispose(); c_image.Dispose(); if(deleteFile) { System.IO.File.Delete(fileName); } } http://www.google.com中搜索"上传图片 水印" http://www.aspxboy.com/Files/71/66/218.Aspx 使用 GDI 对图像处理了 购物网的查询筛选 asp.net网站细节修改 帮忙看看字符串处理的问题 请问为什么登陆后Profile.IsAnonymous都一直为TRUE?? 如何将数据放到客户端编辑后一次全部提交到服务器? 像xici一样的在线人数统计 恳请大家帮忙,谁有asp.net+vb+access的新闻发布系统源代码给小菜一份 有人知道要网上购物通过银行支付要符合什么规定吗? 新手请教关于ASP.NET的ADO的一个访问程序! 这是为什么? 请问如何在B页面将这个数组里面的值读出来呢?请高手指教 在ASP.NET中怎么做进度条?
/// 在图片上加入图片版权信息
/// </summary>
/// <param name="fileName"><seealso cref="原始图片"/></param>
/// <param name="copyRightFile"><seealso cref="版权图片"/></param>
/// <param name="outfileName"><seealso cref="输出图片"/></param>
/// <param name="deleteFile"><seealso cref="是否删除原始图片"/></param>
/// <param name="overrideOld"><seealso cref="如果图片存在是否覆盖"/></param>
/// <param name="x"><seealso cref="版权图片显示的X轴坐标"/></param>
/// <param name="y"><seealso cref="版权图片显示的Y轴坐标"/></param>
public void createCopyRightImage(string fileName, string copyRightFile, string outfileName, bool deleteFile, bool overrideOld, float x, float y)
{
System.Drawing.Image image = System.Drawing.Image.FromFile(fileName);
System.Drawing.Image c_image = System.Drawing.Image.FromFile(copyRightFile);
System.Drawing.Bitmap outPut = new System.Drawing.Bitmap(image);
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(outPut);
g.DrawImage(c_image, x, y);
if(System.IO.File.Exists(outfileName))
{
if(overrideOld)
{
System.IO.File.Delete(outfileName);
outPut.Save(outfileName, System.Drawing.Imaging.ImageFormat.Jpeg);
}
}
else
{
outPut.Save(outfileName, System.Drawing.Imaging.ImageFormat.Jpeg);
}
g.Dispose();
outPut.Dispose();
image.Dispose();
c_image.Dispose();
if(deleteFile)
{
System.IO.File.Delete(fileName);
}
}
http://www.aspxboy.com/Files/71/66/218.Aspx