• 大小: 0.06M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 图片  显示  列表  

资源简介

以列表形式显示图片,类似平铺显示, 支持上一张 下一张

资源截图

代码片段和文件信息

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

//添加命名空间
using System.IO;                   //Directory目录
using System.Diagnostics;          //Stopwatch显示时间

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

        //打开图片
        private void button1_Click(object sender EventArgs e)
        {
            //设置打开文件控件
            OpenFileDialog openfile = new OpenFileDialog();
            openfile.Filter = “JPG(*.JPG;*.JPEG);gif文件(*.GIF);BMP文件(*.BMP);PNG文件(*.PNG)|*.jpg;*.jpeg;*.gif;*.bmp;*.png“;
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-09 21:59  GetPictureList\
     目录           0  2018-05-09 21:59  GetPictureList\.vs\
     目录           0  2018-05-09 21:59  GetPictureList\.vs\GetPictureList\
     目录           0  2018-05-09 21:59  GetPictureList\.vs\GetPictureList\v14\
     文件       37376  2016-05-21 21:50  GetPictureList\.vs\GetPictureList\v14\.suo
     目录           0  2018-03-29 10:59  GetPictureList\GetPictureList\
     文件         187  2014-10-10 12:05  GetPictureList\GetPictureList\App.config
     文件        7825  2014-10-10 13:10  GetPictureList\GetPictureList\Form1.Designer.cs
     文件        7530  2014-10-10 13:10  GetPictureList\GetPictureList\Form1.cs
     文件        6188  2014-10-10 13:10  GetPictureList\GetPictureList\Form1.resx
     文件        3807  2014-10-10 12:10  GetPictureList\GetPictureList\GetPictureList.csproj
     文件         526  2014-10-10 12:05  GetPictureList\GetPictureList\Program.cs
     目录           0  2018-03-29 10:59  GetPictureList\GetPictureList\Properties\
     文件        1348  2014-10-10 12:05  GetPictureList\GetPictureList\Properties\AssemblyInfo.cs
     文件        2880  2014-10-10 12:05  GetPictureList\GetPictureList\Properties\Resources.Designer.cs
     文件        5612  2014-10-10 12:05  GetPictureList\GetPictureList\Properties\Resources.resx
     文件        1101  2014-10-10 12:05  GetPictureList\GetPictureList\Properties\Settings.Designer.cs
     文件         249  2014-10-10 12:05  GetPictureList\GetPictureList\Properties\Settings.settings
     目录           0  2018-03-29 10:59  GetPictureList\GetPictureList\bin\
     目录           0  2018-03-29 10:59  GetPictureList\GetPictureList\bin\Debug\
     文件       13312  2016-05-21 21:11  GetPictureList\GetPictureList\bin\Debug\GetPictureList.exe
     文件         187  2014-10-10 12:05  GetPictureList\GetPictureList\bin\Debug\GetPictureList.exe.config
     文件       30208  2016-05-21 21:11  GetPictureList\GetPictureList\bin\Debug\GetPictureList.pdb
     文件       22696  2018-05-09 22:00  GetPictureList\GetPictureList\bin\Debug\GetPictureList.vshost.exe
     文件         187  2014-10-10 12:05  GetPictureList\GetPictureList\bin\Debug\GetPictureList.vshost.exe.config
     文件         490  2015-10-22 09:54  GetPictureList\GetPictureList\bin\Debug\GetPictureList.vshost.exe.manifest
     目录           0  2018-03-29 10:59  GetPictureList\GetPictureList\obj\
     目录           0  2018-05-09 22:00  GetPictureList\GetPictureList\obj\Debug\
     文件         864  2018-05-09 22:00  GetPictureList\GetPictureList\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7144  2018-05-09 22:00  GetPictureList\GetPictureList\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         180  2014-10-10 13:10  GetPictureList\GetPictureList\obj\Debug\GetPictureList.Form1.resources
............此处省略12个文件信息

评论

共有 条评论