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

资源简介


资源截图

代码片段和文件信息

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;

namespace UprightnessInterleaving
{
    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
            {
                int in

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-12-22 23:11  UprightnessInterleaving\
     文件         959  2013-06-01 07:16  UprightnessInterleaving.sln
     文件       24576  2010-11-04 02:00  UprightnessInterleaving.suo
     目录           0  2011-12-22 23:11  UprightnessInterleaving\bin\
     目录           0  2013-06-01 07:16  UprightnessInterleaving\bin\Debug\
     文件        9728  2013-06-01 07:16  UprightnessInterleaving\bin\Debug\UprightnessInterleaving.exe
     文件       24064  2013-06-01 07:16  UprightnessInterleaving\bin\Debug\UprightnessInterleaving.pdb
     文件        2494  2010-07-13 18:21  UprightnessInterleaving\Frm_Main.cs
     文件        3197  2010-07-13 18:21  UprightnessInterleaving\Frm_Main.designer.cs
     文件        6017  2010-07-13 18:21  UprightnessInterleaving\Frm_Main.resx
     目录           0  2011-12-22 23:11  UprightnessInterleaving\obj\
     目录           0  2013-06-01 07:16  UprightnessInterleaving\obj\Debug\
     文件        7230  2013-06-01 07:15  UprightnessInterleaving\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2011-12-22 23:11  UprightnessInterleaving\obj\Debug\Refactor\
     目录           0  2013-06-01 07:15  UprightnessInterleaving\obj\Debug\TempPE\
     文件        4608  2013-06-01 07:15  UprightnessInterleaving\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件        4587  2013-06-01 07:16  UprightnessInterleaving\obj\Debug\UprightnessInterleaving.csproj.FileListAbsolute.txt
     文件         850  2013-06-01 07:16  UprightnessInterleaving\obj\Debug\UprightnessInterleaving.csproj.GenerateResource.Cache
     文件        1757  2013-06-01 07:16  UprightnessInterleaving\obj\Debug\UprightnessInterleaving.csprojResolveAssemblyReference.cache
     文件        9728  2013-06-01 07:16  UprightnessInterleaving\obj\Debug\UprightnessInterleaving.exe
     文件         180  2013-06-01 07:16  UprightnessInterleaving\obj\Debug\UprightnessInterleaving.Frm_Main.resources
     文件       24064  2013-06-01 07:16  UprightnessInterleaving\obj\Debug\UprightnessInterleaving.pdb
     文件         180  2013-06-01 07:16  UprightnessInterleaving\obj\Debug\UprightnessInterleaving.Properties.Resources.resources
     文件         507  2010-07-08 22:39  UprightnessInterleaving\Program.cs
     目录           0  2011-12-22 23:11  UprightnessInterleaving\Properties\
     文件        1378  2010-07-08 22:38  UprightnessInterleaving\Properties\AssemblyInfo.cs
     文件        2886  2013-06-01 07:15  UprightnessInterleaving\Properties\Resources.Designer.cs
     文件        5612  2010-07-08 22:38  UprightnessInterleaving\Properties\Resources.resx
     文件        1123  2013-06-01 07:15  UprightnessInterleaving\Properties\Settings.Designer.cs
     文件         249  2010-07-08 22:38  UprightnessInterleaving\Properties\Settings.settings
     文件        4050  2013-06-01 07:15  UprightnessInterleaving\UprightnessInterleaving.csproj
............此处省略0个文件信息

评论

共有 条评论