• 大小: 0.16M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 图片  C#  c  缩放  

资源简介


资源截图

代码片段和文件信息

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

namespace 图片缩放
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private double height = 0;
        private double width = 0;
        private void button1_Click(object sender EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.title = “请选择一个图片文件“;
            dialog.Filter = “图片文件(*.jpg)|*.jpg“;
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                string file = dialog.FileName;
                pictureBox1.Load(file);
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     48128  2019-03-20 16:20  图片缩放\.vs\图片缩放\v15\.suo

     文件          0  2019-01-16 13:12  图片缩放\.vs\图片缩放\v15\Server\sqlite3\db.lock

     文件       4096  2019-01-16 13:12  图片缩放\.vs\图片缩放\v15\Server\sqlite3\storage.ide

     文件      32768  2019-03-20 16:20  图片缩放\.vs\图片缩放\v15\Server\sqlite3\storage.ide-shm

     文件     918792  2019-01-16 13:18  图片缩放\.vs\图片缩放\v15\Server\sqlite3\storage.ide-wal

     文件      11264  2019-03-20 16:20  图片缩放\图片缩放\bin\Debug\图片缩放.exe

     文件      30208  2019-03-20 16:20  图片缩放\图片缩放\bin\Debug\图片缩放.pdb

     文件       3893  2019-01-16 13:18  图片缩放\图片缩放\Form1.cs

     文件       5918  2019-01-16 13:17  图片缩放\图片缩放\Form1.Designer.cs

     文件       5817  2019-01-16 13:17  图片缩放\图片缩放\Form1.resx

     文件       1431  2019-03-20 16:20  图片缩放\图片缩放\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6905  2019-01-16 13:13  图片缩放\图片缩放\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件         42  2019-01-16 13:12  图片缩放\图片缩放\obj\Debug\图片缩放.csproj.CoreCompileInputs.cache

     文件        892  2019-01-16 13:17  图片缩放\图片缩放\obj\Debug\图片缩放.csproj.FileListAbsolute.txt

     文件       1012  2019-01-16 13:17  图片缩放\图片缩放\obj\Debug\图片缩放.csproj.GenerateResource.cache

     文件      10576  2019-01-16 13:12  图片缩放\图片缩放\obj\Debug\图片缩放.csprojAssemblyReference.cache

     文件      11264  2019-03-20 16:20  图片缩放\图片缩放\obj\Debug\图片缩放.exe

     文件        180  2019-01-16 13:17  图片缩放\图片缩放\obj\Debug\图片缩放.Form1.resources

     文件      30208  2019-03-20 16:20  图片缩放\图片缩放\obj\Debug\图片缩放.pdb

     文件        180  2019-01-16 13:17  图片缩放\图片缩放\obj\Debug\图片缩放.Properties.Resources.resources

     文件        493  2019-01-16 13:12  图片缩放\图片缩放\Program.cs

     文件       1322  2019-01-16 13:12  图片缩放\图片缩放\Properties\AssemblyInfo.cs

     文件       2837  2019-01-16 13:12  图片缩放\图片缩放\Properties\Resources.Designer.cs

     文件       5612  2019-01-16 13:12  图片缩放\图片缩放\Properties\Resources.resx

     文件       1099  2019-01-16 13:12  图片缩放\图片缩放\Properties\Settings.Designer.cs

     文件        249  2019-01-16 13:12  图片缩放\图片缩放\Properties\Settings.settings

     文件       3428  2019-01-16 13:17  图片缩放\图片缩放\图片缩放.csproj

     文件       1134  2019-01-16 13:12  图片缩放\图片缩放.sln

     目录          0  2019-01-16 13:12  图片缩放\.vs\图片缩放\v15\Server\sqlite3

     目录          0  2019-01-16 13:12  图片缩放\.vs\图片缩放\v15\Server

............此处省略14个文件信息

评论

共有 条评论