資源簡介
winfrom添加水印

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Threading;
using?System.IO;
using?WatermarkTools.BLL;
using?System.Drawing.Text;
namespace?WatermarkTools
{
????public?partial?class?Form1?:?Form
????{
????????List?listExtention?=?new?List();
????????public?Form1()
????????{
????????????InitializeComponent();
????????????Form.CheckForIllegalCrossThreadCalls?=?false;
????????????listExtention.AddRange(new?string[]?{?“.jpg“?“.gif“?“.png“?});
????????????ConfigFile.Instanse.fileName?=?AppDomain.CurrentDomain.baseDirectory?+?“圖片加水印工具.ini“;
????????}
???????
????????private?void?Form1_FormClosed(object?sender?FormClosedEventArgs?e)
????????{
????????????Application.Exit();
????????????Application.ExitThread();
????????}
????????#region?在新線程中運(yùn)行函數(shù)
????????///?
????????///?在新線程中運(yùn)行函數(shù)
????????///?
????????///?傳入?函數(shù)名(無參、無返回值)
????????///?是否為后臺(tái)線程(后臺(tái)線程,窗口關(guān)閉后就終止線程)
????????public?static?void?ThreadNew(VoidFunction?func?bool?IsBackground)
????????{
????????????Thread?th1?=?new?Thread(new?ThreadStart(func));
????????????th1.IsBackground?=?IsBackground;//后臺(tái)線程,窗口關(guān)閉后就終止線程
????????????th1.Start();
????????}
????????///?
????????///?在新線程中運(yùn)行函數(shù)
????????///?
????????///?傳入?函數(shù)名(有一個(gè)參數(shù)、無返回值)
????????///?object參數(shù)
????????///?是否為后臺(tái)線程(后臺(tái)線程,窗口關(guān)閉后就終止線程)
????????public?static?Thread?ThreadNew(ParamFunction?func?object?para?bool?IsBackground)
????????{
????????????Thread?th1?=?new?Thread(new?ParameterizedThreadStart(func));
????????????//判斷狀態(tài)
????????????//((int)th1.ThreadState?&((int)ThreadState.Running?|?(int)ThreadState.Suspended)?)?==?0?
????????????th1.IsBackground?=?IsBackground;
????????????th1.Start(para);
????????????return?th1;
????????}
????????///?
????????///?允許線程之間進(jìn)行操作
????????///?
????????public?static?void?OprateBetweenThread()
????????{
????????????System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls?=?false;
????????}
????????///?
????????///?無參的、返回值為void的委托,可以用來做參數(shù)名
????????///?
????????public?delegate?void?VoidFunction();
????????///?
????????///?有一個(gè)參數(shù)的、返回值為void的委托,可以用來做參數(shù)名
????????///?
????????public?delegate?void?ParamFunction(object?para);
????????#endregion
????????private?void?lb_selectDir_Click(object?sender?EventArgs?e)
????????{
????????????FolderBrowserDialog?fbd?=?new?FolderBrowserDialog();
????????????if?(fbd.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????txtDir.Text?=?fbd.SelectedPath;
????????????????ConfigFile.Instanse[“txtDir“]?=?txtDir.Text;????????????????
????????????}
????????}
????????private?void?lb_selectMark_Click(object?sender?Ev
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????14336??2017-05-25?14:53??圖片加水印工具\(yùn).vs\圖片加水印工具\(yùn)v14\.suo
?????文件??????35328??2017-05-25?15:00??圖片加水印工具\(yùn)bin\Debug\app.publish\WatermarkTools.exe
?????文件???????1651??2017-05-25?15:00??圖片加水印工具\(yùn)bin\Debug\WatermarkTools.application
?????文件??????35328??2017-05-25?15:00??圖片加水印工具\(yùn)bin\Debug\WatermarkTools.exe
?????文件???????3494??2017-05-25?15:00??圖片加水印工具\(yùn)bin\Debug\WatermarkTools.exe.manifest
?????文件??????48640??2017-05-25?15:00??圖片加水印工具\(yùn)bin\Debug\WatermarkTools.pdb
?????文件???????1651??2017-05-25?15:00??圖片加水印工具\(yùn)bin\Debug\WatermarkTools.vshost.application
?????文件??????21688??2017-05-25?15:01??圖片加水印工具\(yùn)bin\Debug\WatermarkTools.vshost.exe
?????文件???????3494??2017-05-25?15:00??圖片加水印工具\(yùn)bin\Debug\WatermarkTools.vshost.exe.manifest
?????文件???????1686??2017-05-25?11:07??圖片加水印工具\(yùn)bin\Debug\圖片加水印工具.application
?????文件??????27648??2017-05-25?11:07??圖片加水印工具\(yùn)bin\Debug\圖片加水印工具.exe
?????文件???????3529??2017-05-25?11:07??圖片加水印工具\(yùn)bin\Debug\圖片加水印工具.exe.manifest
?????文件????????112??2017-05-25?11:45??圖片加水印工具\(yùn)bin\Debug\圖片加水印工具.ini
?????文件??????38400??2017-05-25?11:07??圖片加水印工具\(yùn)bin\Debug\圖片加水印工具.pdb
?????文件???????1686??2017-05-25?11:07??圖片加水印工具\(yùn)bin\Debug\圖片加水印工具.vshost.application
?????文件???????3529??2017-05-25?11:07??圖片加水印工具\(yùn)bin\Debug\圖片加水印工具.vshost.exe.manifest
?????文件???????8590??2017-05-25?11:20??圖片加水印工具\(yùn)BLL\ConfigFile.cs
?????文件???????3519??2017-05-25?11:20??圖片加水印工具\(yùn)BLL\DesEncrypt.cs
?????文件??????10735??2017-05-25?12:15??圖片加水印工具\(yùn)BLL\ImageWatermark.cs
?????文件???????4286??2013-08-23?17:28??圖片加水印工具\(yùn)favicon.ico
?????文件??????12806??2017-05-25?14:50??圖片加水印工具\(yùn)Form1.cs
?????文件??????15931??2017-05-25?15:00??圖片加水印工具\(yùn)Form1.Designer.cs
?????文件??????12754??2017-05-25?14:50??圖片加水印工具\(yùn)Form1.resx
?????文件????????249??2017-05-25?12:29??圖片加水印工具\(yùn)Model\Info.cs
?????文件??????33545??2017-05-25?15:00??圖片加水印工具\(yùn)obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6396??2017-05-25?14:49??圖片加水印工具\(yùn)obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????346??2013-08-23?17:49??圖片加水印工具\(yùn)obj\x86\Debug\GenerateResource-ResGen.read.1.tlog
?????文件????????474??2013-08-23?17:49??圖片加水印工具\(yùn)obj\x86\Debug\GenerateResource-ResGen.write.1.tlog
?????文件???????3584??2017-05-25?11:20??圖片加水印工具\(yùn)obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件???????1651??2017-05-25?15:00??圖片加水印工具\(yùn)obj\x86\Debug\WatermarkTools.application
............此處省略44個(gè)文件信息
評(píng)論
共有 條評(píng)論