• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-27
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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

namespace LevelInterleaving
{
    public partial class Frm_Main : Form
    {
        Bitmap myBitmap;
        public Frm_Main()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            openFileDialog1.Filter = “*.jpg*.jpeg*.bmp|*.jpg;*.jpeg;*.bmp“;  //设置文件的类型
            openFileDialog1.ShowDialog();  //打开文件对话框
            Image myImage = System.Drawing.Image.FromFile(openFileDialog1.FileName); //根据文件的路径实例化Image类
            myBitmap = new Bitmap(myImage); //实例化Bitmap类
            this.BackgroundImage = myBitmap;  //显示打开的图片
        }

        private void button2_Click(object sender EventArgs e)
        {
            try
            {

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-12-22 23:11  LevelInterleaving\
     文件         941  2013-05-31 16:06  LevelInterleaving.sln
     文件       24576  2010-11-04 02:00  LevelInterleaving.suo
     目录           0  2011-12-22 23:11  LevelInterleaving\bin\
     目录           0  2013-05-31 16:07  LevelInterleaving\bin\Debug\
     文件        9728  2013-05-31 16:07  LevelInterleaving\bin\Debug\LevelInterleaving.exe
     文件       24064  2013-05-31 16:07  LevelInterleaving\bin\Debug\LevelInterleaving.pdb
     文件        2522  2010-07-13 18:16  LevelInterleaving\Frm_Main.cs
     文件        3191  2010-07-13 18:16  LevelInterleaving\Frm_Main.designer.cs
     文件        6017  2010-07-13 18:16  LevelInterleaving\Frm_Main.resx
     文件        4038  2013-05-31 16:06  LevelInterleaving\LevelInterleaving.csproj
     目录           0  2011-12-22 23:11  LevelInterleaving\obj\
     目录           0  2013-05-31 16:07  LevelInterleaving\obj\Debug\
     文件        7194  2013-05-31 16:06  LevelInterleaving\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        4167  2013-05-31 16:07  LevelInterleaving\obj\Debug\LevelInterleaving.csproj.FileListAbsolute.txt
     文件         850  2013-05-31 16:07  LevelInterleaving\obj\Debug\LevelInterleaving.csproj.GenerateResource.Cache
     文件        1757  2013-05-31 16:07  LevelInterleaving\obj\Debug\LevelInterleaving.csprojResolveAssemblyReference.cache
     文件        9728  2013-05-31 16:07  LevelInterleaving\obj\Debug\LevelInterleaving.exe
     文件         180  2013-05-31 16:07  LevelInterleaving\obj\Debug\LevelInterleaving.Frm_Main.resources
     文件       24064  2013-05-31 16:07  LevelInterleaving\obj\Debug\LevelInterleaving.pdb
     文件         180  2013-05-31 16:07  LevelInterleaving\obj\Debug\LevelInterleaving.Properties.Resources.resources
     目录           0  2011-12-22 23:11  LevelInterleaving\obj\Debug\Refactor\
     目录           0  2013-05-31 16:06  LevelInterleaving\obj\Debug\TempPE\
     文件        4608  2013-05-31 16:06  LevelInterleaving\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         501  2010-07-08 22:37  LevelInterleaving\Program.cs
     目录           0  2011-12-22 23:11  LevelInterleaving\Properties\
     文件        1366  2010-07-08 22:37  LevelInterleaving\Properties\AssemblyInfo.cs
     文件        2874  2013-05-31 16:06  LevelInterleaving\Properties\Resources.Designer.cs
     文件        5612  2010-07-08 22:37  LevelInterleaving\Properties\Resources.resx
     文件        1117  2013-05-31 16:06  LevelInterleaving\Properties\Settings.Designer.cs
     文件         249  2010-07-08 22:37  LevelInterleaving\Properties\Settings.settings
............此处省略0个文件信息

评论

共有 条评论