• 大小: 0.23M
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签: 图片  压缩  gif  

资源简介


资源截图

代码片段和文件信息

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

namespace WinForGIFSicle
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {

        }

        #region 拖放文件
        private void Form1_DragDrop(object sender DragEventArgs e)
        {
            DragFile(e);
        }

        private void Form1_DragEnter(object sender DragEventArgs e)
        {
            DragFile(e);
        }

        void DragFile(DragEventArgs e)
        {
            //如果拖进来的是文件类型
            if (e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                string[] paths = e.Data.GetData(DataFormats.FileDrop) as string[];
                StringBuilder sb = new Str

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-14 15:22  WinForGIFSicle\
     文件        9607  2019-05-14 15:22  WinForGIFSicle\Form1.Designer.cs
     文件        7646  2019-05-14 15:22  WinForGIFSicle\Form1.cs
     文件        5817  2019-05-14 15:22  WinForGIFSicle\Form1.resx
     文件         495  2019-05-10 15:35  WinForGIFSicle\Program.cs
     目录           0  2019-05-10 15:35  WinForGIFSicle\Properties\
     文件        1336  2019-05-10 15:35  WinForGIFSicle\Properties\AssemblyInfo.cs
     文件        2841  2019-05-10 15:35  WinForGIFSicle\Properties\Resources.Designer.cs
     文件        5612  2019-05-10 15:35  WinForGIFSicle\Properties\Resources.resx
     文件        1101  2019-05-10 15:35  WinForGIFSicle\Properties\Settings.Designer.cs
     文件         249  2019-05-10 15:35  WinForGIFSicle\Properties\Settings.settings
     文件        3742  2019-05-10 15:39  WinForGIFSicle\WinForGIFSicle.csproj
     目录           0  2019-05-10 15:35  WinForGIFSicle\bin\
     目录           0  2019-05-14 17:35  WinForGIFSicle\bin\Debug\
     文件       14336  2019-05-14 15:22  WinForGIFSicle\bin\Debug\WinForGIFSicle.exe
     文件      107688  2019-04-22 22:52  WinForGIFSicle\bin\Debug\gifdiff.exe
     文件      283656  2019-04-22 22:52  WinForGIFSicle\bin\Debug\gifsicle.exe
     目录           0  2019-05-10 15:35  WinForGIFSicle\obj\
     目录           0  2019-05-14 15:22  WinForGIFSicle\obj\Debug\
     文件        1452  2019-05-10 16:55  WinForGIFSicle\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6866  2019-05-10 15:36  WinForGIFSicle\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2019-05-14 17:35  WinForGIFSicle\obj\Debug\TempPE\
     文件         180  2019-05-14 15:22  WinForGIFSicle\obj\Debug\WinForGIFSicle.Form1.resources
     文件         180  2019-05-10 15:47  WinForGIFSicle\obj\Debug\WinForGIFSicle.Properties.Resources.resources
     文件         698  2019-05-14 17:22  WinForGIFSicle\obj\Debug\WinForGIFSicle.csproj.FileListAbsolute.txt
     文件        1012  2019-05-14 15:22  WinForGIFSicle\obj\Debug\WinForGIFSicle.csproj.GenerateResource.Cache
     文件        2210  2019-05-10 15:47  WinForGIFSicle\obj\Debug\WinForGIFSicle.csprojResolveAssemblyReference.cache
     文件       14336  2019-05-14 15:22  WinForGIFSicle\obj\Debug\WinForGIFSicle.exe
     文件       26112  2019-05-14 15:22  WinForGIFSicle\obj\Debug\WinForGIFSicle.pdb
     文件        1009  2019-05-10 15:35  WinForGIFSicle.sln

评论

共有 条评论