风讯donetCMS添加水印图片为实际大小
来源:程序员人生 发布时间:2013-12-24 18:45:34 阅读次数:2254次
需要修改下面这个文件:
/Foosun.CMS/Common/FSImage.cs
找到
CODE:
double tempW = Convert.ToDouble(this._width) / 10 * Convert.ToDouble(width);
double tempH = Convert.ToDouble(this._height) / 10 * Convert.ToDouble(height);
将下面的二行换为
CODE:
WatermarkWidth = Convert.ToInt32(watermark.Width);
WatermarkHeight = Convert.ToInt32(watermark.Height);
生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠