对图片添加水印,上传 <div> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="Button1" runat="server" Text="上传" /><br /> <asp:Image ID="Image1" ...
分类:
Web程序 时间:
2017-06-10 10:45:16
阅读次数:
151
1.文件上传加水印 页面代码: 后台代码: ...
分类:
Web程序 时间:
2017-06-09 20:25:04
阅读次数:
252
图片加水印 1 获取这张图片 System.Drawing.Image img = System.Drawing.Image.FromStream(FileUpload1.FileContent); 2 给图片加水印 Graphics g = Graphics.FromImage(img); str ...
分类:
其他好文 时间:
2017-06-09 12:35:58
阅读次数:
166
文件上传: 所用控件:FileUpload 使用时的思路: 1、判断用户是否选中了文件 FileUpload.FileName获取选中的文件名,判断长度,如果长度大于零就代表已经选择了文件 JS端:通过ID获取控件,然后控件的value获取选中的文件名 2、将文件保存到服务器上 FileUpload ...
分类:
Web程序 时间:
2017-06-08 16:36:01
阅读次数:
327
安装好dedecms后先修改一些基本东西 1) 更换风格:需要修改2个地方 1:系统->基本基本参数->风格 2:生成->更新主页html->有个默认主页地址修改对应的 2) 去掉图片水印 系统->图片水印设置 3) 去掉图片高度默认120*120 在include/taglib/arclist.l ...
分类:
其他好文 时间:
2017-06-06 18:31:57
阅读次数:
117
实验过程: JDK、Android Studio的安装: 参见卢晓明博客:http://www.cnblogs.com/lxm20145215 /p/5444207.html 注意事项:解决Fetching android sdk component information加载过久问题 安装完成后, ...
分类:
其他好文 时间:
2017-06-05 00:41:57
阅读次数:
172
1:生成缩略图: imagecopyresampled ( 目标图片资源 ,原图片资源 , 在目标图的X位置 ,在目标图的Y位置 , 原图的X位置 , 原图的Y位置, 在目标图中的宽度, 在目标图中的高度 , 原图片宽度 , 原图片高度 ) dst_image目标图象连接资源。src_image源图 ...
分类:
其他好文 时间:
2017-06-04 18:30:03
阅读次数:
211
public static void AddWaterText(string oldpath,string savepath,string watertext,WaterPositionMode position,string color,int alpha) { Image image = Ima... ...
分类:
其他好文 时间:
2017-05-31 18:53:43
阅读次数:
183
<?php /*给图片加文字水印的方法*/ $dst_path = 'http://f4.topitme.com/4/15/11/1166351597fe111154l.jpg'; $dst = imagecreatefromstring(file_get_contents($dst_path)); ...
分类:
Web程序 时间:
2017-05-30 22:03:44
阅读次数:
282