• 大小: 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.Windows.Forms;

namespace NegativeImage
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender EventArgs e)
        {
            //打图像文件
            OpenFileDialog openFileDialog = new OpenFileDialog();
            openFileDialog.Filter = “图像文件(JPeg Gif Bmp etc.)|*.jpg;*.jpeg;*.gif;*.bmp;*.tif; *.tiff; *.png| JPeg 图像文件(*.jpg;*.jpeg)|*.jpg;*.jpeg |GIF 图像文件(*.gif)|*.gif |BMP图像文件(*.bmp)|*.bmp|Tiff图像文件(*.tif;*.tiff)|*.tif;*.tiff|Png图像文件(*.png)| *.png |所有文件(*.*)|*.*“;
            if (openFileDialog.ShowDialog() == DialogResult.OK)//判断是否选择了文件
            {
                Bitmap MyBitmap = new Bitmap(openFileDialog.FileName);
                this.pictureBox1.Image = MyBitmap;
            }

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-12-22 23:11  NegativeImage\
     文件         929  2013-06-04 21:05  NegativeImage.sln
     文件       25600  2010-11-04 02:21  NegativeImage.suo
     目录           0  2011-12-22 23:11  NegativeImage\bin\
     目录           0  2013-06-04 21:06  NegativeImage\bin\Debug\
     文件       10240  2013-06-04 21:06  NegativeImage\bin\Debug\NegativeImage.exe
     文件       24064  2013-06-04 21:06  NegativeImage\bin\Debug\NegativeImage.pdb
     文件        2565  2010-07-13 21:16  NegativeImage\Frm_Main.cs
     文件        3600  2010-07-13 18:57  NegativeImage\Frm_Main.designer.cs
     文件        5814  2010-07-13 18:57  NegativeImage\Frm_Main.resx
     文件        4030  2013-06-04 21:05  NegativeImage\NegativeImage.csproj
     目录           0  2011-12-22 23:11  NegativeImage\obj\
     目录           0  2013-06-04 21:06  NegativeImage\obj\Debug\
     文件        7170  2013-06-04 21:05  NegativeImage\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        3887  2013-06-04 21:06  NegativeImage\obj\Debug\NegativeImage.csproj.FileListAbsolute.txt
     文件         850  2013-06-04 21:06  NegativeImage\obj\Debug\NegativeImage.csproj.GenerateResource.Cache
     文件        1757  2013-06-04 21:06  NegativeImage\obj\Debug\NegativeImage.csprojResolveAssemblyReference.cache
     文件       10240  2013-06-04 21:06  NegativeImage\obj\Debug\NegativeImage.exe
     文件         180  2013-06-04 21:06  NegativeImage\obj\Debug\NegativeImage.Frm_Main.resources
     文件       24064  2013-06-04 21:06  NegativeImage\obj\Debug\NegativeImage.pdb
     文件         180  2013-06-04 21:06  NegativeImage\obj\Debug\NegativeImage.Properties.Resources.resources
     目录           0  2011-12-22 23:11  NegativeImage\obj\Debug\Refactor\
     目录           0  2013-06-04 21:05  NegativeImage\obj\Debug\TempPE\
     文件        4608  2013-06-04 21:05  NegativeImage\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         497  2010-07-08 22:46  NegativeImage\Program.cs
     目录           0  2011-12-22 23:11  NegativeImage\Properties\
     文件        1358  2010-07-08 22:45  NegativeImage\Properties\AssemblyInfo.cs
     文件        2866  2013-06-04 21:05  NegativeImage\Properties\Resources.Designer.cs
     文件        5612  2010-07-08 22:45  NegativeImage\Properties\Resources.resx
     文件        1113  2013-06-04 21:05  NegativeImage\Properties\Settings.Designer.cs
     文件         249  2010-07-08 22:45  NegativeImage\Properties\Settings.settings
............此处省略0个文件信息

评论

共有 条评论