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

资源简介

C#实现给照片批量添加水印功能 实例源码,可添加文字水印和图片水印等,其中还有透明度以及水印字体设置等功能

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Drawing.Text;
using System.Drawing.Imaging;
namespace IMGwatermark
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }


        #region 获取系统字体
        private void GetSystemFont(ToolStripComboBox cb)
        {
            InstalledFontCollection myFont = new InstalledFontCollection();
            foreach (FontFamily ff in myFont.Families)
            {
                cb.Items.Add(ff.Name);
            }
            cb.SelectedItem = “宋体“;
        }
        #endregion
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-14 13:19  批量添加水印\
     目录           0  2013-01-14 13:19  批量添加水印\IMGwatermark\
     文件         926  2008-10-09 09:22  批量添加水印\IMGwatermark.sln
     目录           0  2013-01-14 13:19  批量添加水印\IMGwatermark\bin\
     目录           0  2013-01-14 13:19  批量添加水印\IMGwatermark\bin\Debug\
     文件       25088  2008-12-28 16:26  批量添加水印\IMGwatermark\bin\Debug\IMGwatermark.exe
     文件       56832  2008-12-28 16:26  批量添加水印\IMGwatermark\bin\Debug\IMGwatermark.pdb
     文件       14328  2009-01-14 11:47  批量添加水印\IMGwatermark\bin\Debug\IMGwatermark.vshost.exe
     文件         490  2007-07-21 01:33  批量添加水印\IMGwatermark\bin\Debug\IMGwatermark.vshost.exe.manifest
     文件       16896  2008-12-26 13:24  批量添加水印\IMGwatermark\Form1.cs
     文件       22186  2008-12-26 13:21  批量添加水印\IMGwatermark\Form1.Designer.cs
     文件        7031  2008-12-26 13:21  批量添加水印\IMGwatermark\Form1.resx
     文件         515  2008-10-10 16:40  批量添加水印\IMGwatermark\Form2.cs
     文件        2568  2008-10-10 16:40  批量添加水印\IMGwatermark\Form2.Designer.cs
     文件        5814  2008-10-10 16:40  批量添加水印\IMGwatermark\Form2.resx
     文件        4195  2008-10-11 13:10  批量添加水印\IMGwatermark\IMGwatermark.csproj
     目录           0  2013-01-14 13:19  批量添加水印\IMGwatermark\obj\
     目录           0  2013-01-14 13:19  批量添加水印\IMGwatermark\obj\Debug\
     文件        3387  2009-01-14 11:47  批量添加水印\IMGwatermark\obj\Debug\IMGwatermark.csproj.FileListAbsolute.txt
     文件         905  2008-12-26 13:21  批量添加水印\IMGwatermark\obj\Debug\IMGwatermark.csproj.GenerateResource.Cache
     文件       25088  2008-12-28 16:26  批量添加水印\IMGwatermark\obj\Debug\IMGwatermark.exe
     文件         180  2008-12-26 13:21  批量添加水印\IMGwatermark\obj\Debug\IMGwatermark.Form1.resources
     文件         180  2008-10-11 13:10  批量添加水印\IMGwatermark\obj\Debug\IMGwatermark.Form2.resources
     文件       56832  2008-12-28 16:26  批量添加水印\IMGwatermark\obj\Debug\IMGwatermark.pdb
     文件         180  2008-10-11 13:10  批量添加水印\IMGwatermark\obj\Debug\IMGwatermark.Properties.Resources.resources
     目录           0  2012-05-02 09:51  批量添加水印\IMGwatermark\obj\Debug\Refactor\
     目录           0  2013-01-14 13:19  批量添加水印\IMGwatermark\obj\Debug\TempPE\
     文件        4608  2008-10-11 13:10  批量添加水印\IMGwatermark\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         493  2008-10-09 09:22  批量添加水印\IMGwatermark\Program.cs
     目录           0  2013-01-14 13:19  批量添加水印\IMGwatermark\Properties\
     文件        1388  2008-12-24 14:25  批量添加水印\IMGwatermark\Properties\AssemblyInfo.cs
............此处省略4个文件信息

评论

共有 条评论