• 大小: 0.14M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-29
  • 语言: C/C++
  • 标签: C#  水印  

资源简介

C# 批量加水印,可以将文字或者图片设置为水印,且支持自定义水印位置(右下角、左下角、中间、右上角、左上角等等),且支持批量水印操作

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace WaterMark
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private string fileName = string.Empty;//源文件包含路径
        private string logo = string.Empty;//图标水印文件
        private string[] files = null;//批量处理时文件组

        /// 
        /// 窗体加载时
        /// 

        /// 
        /// 
        private void FrmMain_Load(object sender EventArgs e)
        {
            cbPosition.SelectedItem = “中间“;
        }

        

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

     文件      40448  2019-08-07 11:37  WaterMark\WaterMark\bin\Debug\WaterMark.exe

     文件      44544  2019-08-07 11:37  WaterMark\WaterMark\bin\Debug\WaterMark.pdb

     文件      11608  2019-08-17 10:12  WaterMark\WaterMark\bin\Debug\WaterMark.vshost.exe

     文件        490  2010-03-17 22:39  WaterMark\WaterMark\bin\Debug\WaterMark.vshost.exe.manifest

     文件      25587  2019-08-07 11:37  WaterMark\WaterMark\bin\Debug.rar

     文件      39424  2019-08-07 11:35  WaterMark\WaterMark\bin\Release\WaterMark.exe

     文件      44544  2019-08-07 11:35  WaterMark\WaterMark\bin\Release\WaterMark.pdb

     文件      11608  2019-08-07 11:36  WaterMark\WaterMark\bin\Release\WaterMark.vshost.exe

     文件        490  2010-03-17 22:39  WaterMark\WaterMark\bin\Release\WaterMark.vshost.exe.manifest

     文件       7785  2019-08-07 11:35  WaterMark\WaterMark\FrmMain.cs

     文件      12443  2011-04-15 09:02  WaterMark\WaterMark\FrmMain.Designer.cs

     文件      20816  2019-08-07 11:35  WaterMark\WaterMark\FrmMain.resx

     文件      24572  2011-04-15 15:13  WaterMark\WaterMark\ImageWater.cs

     文件       1229  2019-08-17 10:12  WaterMark\WaterMark\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       5382  2019-08-17 10:12  WaterMark\WaterMark\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        434  2011-03-20 00:06  WaterMark\WaterMark\obj\x86\Debug\GenerateResource-ResGen.read.1.tlog

     文件        658  2011-03-20 00:06  WaterMark\WaterMark\obj\x86\Debug\GenerateResource-ResGen.write.1.tlog

     文件       1468  2019-08-17 10:12  WaterMark\WaterMark\obj\x86\Debug\WaterMark.csproj.FileListAbsolute.txt

     文件        849  2019-08-07 11:37  WaterMark\WaterMark\obj\x86\Debug\WaterMark.csproj.GenerateResource.Cache

     文件      40448  2019-08-07 11:37  WaterMark\WaterMark\obj\x86\Debug\WaterMark.exe

     文件      10228  2019-08-07 11:37  WaterMark\WaterMark\obj\x86\Debug\WaterMark.FrmMain.resources

     文件      44544  2019-08-07 11:37  WaterMark\WaterMark\obj\x86\Debug\WaterMark.pdb

     文件        180  2019-08-07 11:37  WaterMark\WaterMark\obj\x86\Debug\WaterMark.Properties.Resources.resources

     文件       1229  2019-08-07 11:22  WaterMark\WaterMark\obj\x86\Release\DesignTimeResolveAssemblyReferences.cache

     文件       5461  2019-08-07 11:36  WaterMark\WaterMark\obj\x86\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件        434  2011-04-15 09:05  WaterMark\WaterMark\obj\x86\Release\GenerateResource-ResGen.read.1.tlog

     文件        666  2011-04-15 09:05  WaterMark\WaterMark\obj\x86\Release\GenerateResource-ResGen.write.1.tlog

     文件       1625  2019-08-07 11:36  WaterMark\WaterMark\obj\x86\Release\WaterMark.csproj.FileListAbsolute.txt

     文件        849  2019-08-07 11:35  WaterMark\WaterMark\obj\x86\Release\WaterMark.csproj.GenerateResource.Cache

     文件       1339  2019-08-07 11:36  WaterMark\WaterMark\obj\x86\Release\WaterMark.csprojResolveAssemblyReference.cache

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

评论

共有 条评论