• 大小: 439KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-04
  • 语言: C#
  • 标签: 图像处理  

资源简介

图像处理程序源代码,支持多种对图像的处理方式。

资源截图

代码片段和文件信息

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

namespace ConvertBmpToGray
{
    public partial class BeiJingTu : Form
    {
        public int[ ] BeiJingTu_n = new int[600 6003];
        public int p;
        string file;
        public BeiJingTu()
        {

            InitializeComponent();
        }

        private void pictureBox1_Click(object sender EventArgs e)
        {

        }

        private void button1_Click(object sender EventArgs e)
        {
            this.openFileDialog1.Filter = “bmp files (*.bmp)|*.bmp|All files (*.*)|*.*“;
            this.openFileDialog1.ShowDialog();
            file = this.openFileDialog1.FileName;//
            Bitmap bm = new Bitmap(file);//
            if (file == null)
                return;
            //MessageBox.Show(file);//这三句相当于Bitmap image = new Bitmap(ofdlg.FileName);
            this.pictureBox1.Image = bm;
        }

        private void button3_Click(object sender EventArgs e)
        {
            Form1 mainform = new Form1();
            Bitmap box1 = new Bitmap(pictureBox1.Image);
            Color c = new Color();
            for (int i = 0; i < box1.Width - 1; i++)
            {
                for (int j = 0; j < box1.Height - 1; j++)
                {
                    c = box1.GetPixel(i j);
                    BeiJingTu_n[i j 0] = c.R;
                    BeiJingTu_n[i j 1] = c.G;
                    BeiJingTu_n[i j 2] = c.B;
                    
                }
            }
            //MessageBox.Show(“o“+BeiJingTu_n[111]);
            this.Close();
        }

        private void button2_Click(object sender EventArgs e)
        {
            p = 1;
            this.Close();
        }
    }
}

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

     文件        925  2008-07-17 11:24  TuXiangChuLi\TuXiangChuLi.sln

     文件       1498  2008-06-05 16:59  TuXiangChuLi\TuXiangChuLi\BwFilterH.Designer.cs

     文件       4027  2008-06-05 16:59  TuXiangChuLi\TuXiangChuLi\BwFilterH.cs

     文件       5814  2008-06-05 16:59  TuXiangChuLi\TuXiangChuLi\BwFilterH.resx

     文件       1498  2008-06-05 17:00  TuXiangChuLi\TuXiangChuLi\BwFilterL.Designer.cs

     文件       4027  2008-06-05 17:00  TuXiangChuLi\TuXiangChuLi\BwFilterL.cs

     文件       5814  2008-06-05 17:00  TuXiangChuLi\TuXiangChuLi\BwFilterL.resx

     文件      19047  2000-12-12 20:15  TuXiangChuLi\TuXiangChuLi\Complex.cs

     文件      27197  2000-12-12 20:27  TuXiangChuLi\TuXiangChuLi\ComplexArray.cs

     文件      19043  2000-12-12 20:15  TuXiangChuLi\TuXiangChuLi\ComplexF.cs

     文件       5827  2000-12-12 20:28  TuXiangChuLi\TuXiangChuLi\ComplexMath.cs

     文件      13641  2000-12-12 20:29  TuXiangChuLi\TuXiangChuLi\ComplexStats.cs

     文件      15829  2008-07-18 09:56  TuXiangChuLi\TuXiangChuLi\TuXiangChuLi.csproj

     文件       3810  2008-07-17 21:12  TuXiangChuLi\TuXiangChuLi\分割与测量\MenXian.Designer.cs

     文件       5814  2008-07-17 21:12  TuXiangChuLi\TuXiangChuLi\分割与测量\MenXian.resx

     文件        790  2008-07-17 21:23  TuXiangChuLi\TuXiangChuLi\分割与测量\MenXian.cs

     文件       5814  2008-05-13 05:25  TuXiangChuLi\TuXiangChuLi\Error.resx

     文件      53687  2000-12-12 20:15  TuXiangChuLi\TuXiangChuLi\Fourier.cs

     文件       2390  2000-12-12 20:15  TuXiangChuLi\TuXiangChuLi\FourierDirection.cs

     文件       1330  2008-06-05 16:58  TuXiangChuLi\TuXiangChuLi\PerfectFilterH.Designer.cs

     文件       3200  2008-06-05 16:58  TuXiangChuLi\TuXiangChuLi\PerfectFilterH.cs

     文件       5814  2008-06-05 16:58  TuXiangChuLi\TuXiangChuLi\PerfectFilterH.resx

     文件       1523  2008-06-05 16:58  TuXiangChuLi\TuXiangChuLi\PerfectFilterL.Designer.cs

     文件       3231  2008-06-05 16:58  TuXiangChuLi\TuXiangChuLi\PerfectFilterL.cs

     文件       5814  2008-06-05 16:58  TuXiangChuLi\TuXiangChuLi\PerfectFilterL.resx

     文件        475  2000-12-11 20:41  TuXiangChuLi\TuXiangChuLi\Program.cs

     文件       1493  2008-06-05 17:03  TuXiangChuLi\TuXiangChuLi\THFilter.Designer.cs

     文件       4645  2008-06-05 17:03  TuXiangChuLi\TuXiangChuLi\THFilter.cs

     文件       5814  2008-06-05 17:03  TuXiangChuLi\TuXiangChuLi\THFilter.resx

     文件       1493  2008-06-05 17:03  TuXiangChuLi\TuXiangChuLi\TLFilter.Designer.cs

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

评论

共有 条评论