程序员人生 网站导航

风讯donetCMS添加水印图片为实际大小

栏目:DedeCMS时间:2013-12-24 18:45:34
需要修改下面这个文件:

/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);
------分隔线----------------------------
------分隔线----------------------------

最新技术推荐