您的位置:首页 > 编程语言

【原创】使编辑器CuteEditor上传自动添加水印(仅代码)

2012-12-28 14:26 274 查看
1、InsertImage.aspx中添加如下代码,以在前台显示该功能

<asp:CheckBox ID="cbx_wm" runat="server" Text="加水印" />


2、添加水印的方法

View Code

//添加水印
if (this.cbx_wm.Checked)
{
this.MarkWater(ref data, Server.MapPath("~/logo.png"));
}


完成
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: