• 大小: 0.20M
    文件类型: .zip
    金币: 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.Text;
using System.Linq;
using System.Windows.Forms;
using System.Drawing.Imaging;
using System.IO;
//Download by http://www.srcfans.com
namespace ImageBatchChange
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            openFileDialog1.Filter = “*.jpg*.jpeg*.bmp*.gif*.ico*.png*.tif*.wmf|*.jpg;*.jpeg;*.bmp;*.gif;*.ico;*.png;*.tif;*.wmf“;
            openFileDialog1.title = “打开图片文件“;
            openFileDialog1.Multiselect = false;
            openFileDialog1.ShowDialog();
      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-08-21 19:54  .vs\
     目录           0  2019-08-21 20:04  .vs\ImageBatchChange\
     目录           0  2019-08-21 20:04  .vs\ImageBatchChange\DesignTimeBuild\
     文件         212  2019-08-21 20:04  .vs\ImageBatchChange\DesignTimeBuild\.dtbcache
     目录           0  2019-08-21 19:54  .vs\ImageBatchChange\v15\
     文件       44544  2019-08-21 20:04  .vs\ImageBatchChange\v15\.suo
     目录           0  2019-08-21 19:54  .vs\ImageBatchChange\v15\Server\
     目录           0  2019-08-21 19:54  .vs\ImageBatchChange\v15\Server\sqlite3\
     文件           0  2019-08-21 19:54  .vs\ImageBatchChange\v15\Server\sqlite3\db.lock
     文件        4096  2019-08-21 19:54  .vs\ImageBatchChange\v15\Server\sqlite3\storage.ide
     文件       32768  2019-08-21 20:04  .vs\ImageBatchChange\v15\Server\sqlite3\storage.ide-shm
     文件      593312  2019-08-21 20:03  .vs\ImageBatchChange\v15\Server\sqlite3\storage.ide-wal
     目录           0  2019-08-21 19:54  Backup\
     目录           0  2019-08-21 19:54  Backup\ImageBatchChange\
     文件        2808  2016-12-31 22:05  Backup\ImageBatchChange\Form1.cs
     文件        5516  2009-02-23 15:42  Backup\ImageBatchChange\Form1.designer.cs
     文件        6017  2007-07-11 11:22  Backup\ImageBatchChange\Form1.resx
     文件        3778  2009-02-23 15:42  Backup\ImageBatchChange\ImageBatchChange.csproj
     文件         533  2016-12-31 22:05  Backup\ImageBatchChange\Program.cs
     目录           0  2019-08-21 19:54  Backup\ImageBatchChange\Properties\
     文件        1364  2009-02-23 15:39  Backup\ImageBatchChange\Properties\AssemblyInfo.cs
     文件        2882  2009-02-23 15:39  Backup\ImageBatchChange\Properties\Resources.Designer.cs
     文件        5612  2009-02-23 15:39  Backup\ImageBatchChange\Properties\Resources.resx
     文件        1101  2009-02-23 15:39  Backup\ImageBatchChange\Properties\Settings.Designer.cs
     文件         249  2009-02-23 15:39  Backup\ImageBatchChange\Properties\Settings.settings
     文件         938  2009-02-23 15:39  Backup\ImageBatchChange.sln
     目录           0  2019-08-21 20:03  ImageBatchChange\
     文件        5516  2009-02-23 15:42  ImageBatchChange\Form1.Designer.cs
     文件        2808  2019-08-21 20:03  ImageBatchChange\Form1.cs
     文件        6017  2007-07-11 11:22  ImageBatchChange\Form1.resx
     文件        5042  2019-08-21 20:03  ImageBatchChange\ImageBatchChange.csproj
............此处省略28个文件信息

评论

共有 条评论