• 大小: 9.69M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 水印  

资源简介

可以对文字水印和图片水印同时生成,参数设置简单。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Drawing;

namespace UploadImage
{
    public partial class _Default : Page
    {
        //水印图片生成类
        WaterMark wm;
        WMProperties pt = new WMProperties();

        string souImagePath = string.Empty; //源图片完整路径

        string targetImagePath = string.Empty;  //目录图片完整路径

        string logImagePath = string.Empty; //log图片完整路径

        int iAlpha = 150;    //透明度

        protected void Page_Load(object sender EventArgs e)
        {
            //设置字体属性值
            pt.setDefaultValues();

            //new Font(字体名称字号,字体风格)
            //Fontstyle说明
            //Regular     =0//

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       7002  2017-07-13 09:47  UploadImage\packages\AspNet.scriptManager.jQuery.1.8.2\AspNet.scriptManager.jQuery.1.8.2.nupkg

     文件       5120  2017-07-13 09:47  UploadImage\packages\AspNet.scriptManager.jQuery.1.8.2\lib\net40\AspNet.scriptManager.jQuery.dll

     文件       5120  2017-07-13 09:47  UploadImage\packages\AspNet.scriptManager.jQuery.1.8.2\lib\net45\AspNet.scriptManager.jQuery.dll

     文件       7424  2017-07-13 09:47  UploadImage\packages\AspNet.scriptManager.jQuery.UI.Combined.1.8.24\AspNet.scriptManager.jQuery.UI.Combined.1.8.24.nupkg

     文件       5632  2017-07-13 09:47  UploadImage\packages\AspNet.scriptManager.jQuery.UI.Combined.1.8.24\lib\net40\AspNet.scriptManager.jQuery.UI.Combined.dll

     文件       6144  2017-07-13 09:47  UploadImage\packages\AspNet.scriptManager.jQuery.UI.Combined.1.8.24\lib\net45\AspNet.scriptManager.jQuery.UI.Combined.dll

     文件      60926  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.AspNet.4.1.4.12333\DotNetOpenAuth.AspNet.4.1.4.12333.nupkg

     文件      40960  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.AspNet.4.1.4.12333\lib\net40-full\DotNetOpenAuth.AspNet.dll

     文件      84709  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.AspNet.4.1.4.12333\lib\net40-full\DotNetOpenAuth.AspNet.xml

     文件      40960  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.AspNet.4.1.4.12333\lib\net45-full\DotNetOpenAuth.AspNet.dll

     文件      84709  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.AspNet.4.1.4.12333\lib\net45-full\DotNetOpenAuth.AspNet.xml

     文件     321121  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.Core.4.1.4.12333\DotNetOpenAuth.Core.4.1.4.12333.nupkg

     文件     227328  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.Core.dll

     文件     600385  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.Core.xml

     文件     227328  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.Core.4.1.4.12333\lib\net45-full\DotNetOpenAuth.Core.dll

     文件     600385  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.Core.4.1.4.12333\lib\net45-full\DotNetOpenAuth.Core.xml

     文件      27374  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Consumer.4.1.4.12333\DotNetOpenAuth.OAuth.Consumer.4.1.4.12333.nupkg

     文件      17920  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Consumer.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OAuth.Consumer.dll

     文件      25168  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Consumer.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OAuth.Consumer.xml

     文件      17920  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Consumer.4.1.4.12333\lib\net45-full\DotNetOpenAuth.OAuth.Consumer.dll

     文件      25168  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Consumer.4.1.4.12333\lib\net45-full\DotNetOpenAuth.OAuth.Consumer.xml

     文件      72351  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Core.4.1.4.12333\DotNetOpenAuth.OAuth.Core.4.1.4.12333.nupkg

     文件      55808  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OAuth.dll

     文件     104764  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OAuth.xml

     文件      55808  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Core.4.1.4.12333\lib\net45-full\DotNetOpenAuth.OAuth.dll

     文件     104764  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OAuth.Core.4.1.4.12333\lib\net45-full\DotNetOpenAuth.OAuth.xml

     文件     365342  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OpenId.Core.4.1.4.12333\DotNetOpenAuth.OpenId.Core.4.1.4.12333.nupkg

     文件     268288  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OpenId.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OpenId.dll

     文件     631411  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OpenId.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OpenId.xml

     文件     268288  2017-07-13 09:47  UploadImage\packages\DotNetOpenAuth.OpenId.Core.4.1.4.12333\lib\net45-full\DotNetOpenAuth.OpenId.dll

............此处省略897个文件信息

评论

共有 条评论