删除多个图片的多余透明度区域.zip

时间:2022-10-30 12:44:31
【文件属性】:

文件名称:删除多个图片的多余透明度区域.zip

文件大小:76KB

文件格式:ZIP

更新时间:2022-10-30 12:44:31

透明度 图像处理

批量删除图片透明区 压缩图片功能 public string mSelectPath;//当前选择路径 public Form1() { InitializeComponent(); this.toolStripStatusLabel1.Text = "准备就绪"; } private void button1_Click(object sender, EventArgs e) { OpenFileDialog open = new OpenFileDialog(); open.Multiselect = true; open.Filter = "图片|*.png"; if (open.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Tools.Export(new List(open.FileNames), "D://output"); } this.toolStripStatusLabel1.Text = "图片压缩完成"; } private void button2_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.mSelectPath)) { this.toolStripStatusLabel1.Text = "路径不合法"; } else { Tools.ExportFolder(this.mSelectPath, "D://output"); this.RefershTreeView(); this.toolStripStatusLabel1.Text = "导出完成"; } } private void button3_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.mSelectPath)) { this.toolStripStatusLabel1.Text = "路径不合法"; } else { Tools.ChangeImgName(new DirectoryInfo(this.mSelectPath)); this.RefershTreeView(); this.toolStripStatusLabel1.Text = "重命名操作完成"; } } private void linkLabel1_Click(object sender, EventArgs e) { FolderBrowserDialog fb = new FolderBrowserDialog(); if(fb.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.mSelectPath = fb.SelectedPath; this.textBox1.Text = fb.SelectedPath; this.RefershTreeView(); this.toolStripStatusLabel1.Text = "选择路径:" + this.mSelectPath; } }


【文件预览】:
ImgTools-master
----README.md(54B)
----ImgTools()
--------Form1.cs(4KB)
--------bin()
--------NodeInfo.cs(314B)
--------obj()
--------Tools.cs(4KB)
--------Properties()
--------Program.cs(486B)
--------Form1.Designer.cs(10KB)
--------App.config(178B)
--------Form1.resx(6KB)
--------ImgTools.csproj(4KB)
----ImgTools.sln(971B)
----ImgTools.v12.suo(47KB)

网友评论

  • 图片没裁好,图片下方有的地方会丢失