图象浏览处理器作者:吴坚等图象浏览处理小工具直接打开后图片后就可以对图片进行处理,源图象与处理后图象同时出现,并对处理过程采取动态化,简单,易用,但是资源占用过高的问题目前没有解决,对大图片处理有时会有错误发生.软件运行需求:.net1.0或更高环境下运行,基于studio2003开发,C#语言设计思路:使用CDI+显示处理多种格式的图象文件,使用Widows的PictureBox控件,在窗体上加载和显示图片,同时用mainMenu控件进行菜单的设计.进行处理时用Bitmap封装GDI+位图,用MenuItem_Click进行事件发生的处理,用openFileDialog和saveFileDialog控件进行图象的保存和打开.处理方法:图象处理是对一幅彩色图象的各种象素进行变换并依变换后的新象素值进行重新显示.使用Bitmap类的GetPixel方法获取图象上指定象素的颜色值,并参考目前已有的算法对图象进行处理,然后用FromArgb方法创建Color结构,再用Bitmap类的SetPixel方法设置象素,则处理完成.完成情况目前已经具备反色,平滑处理,霓虹处理,边缘检测等基本处理.程序主要代码:Form1.csusingSystem;usingSystem.Drawing;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Windows.Forms;usingSystem.Data;usingSystem.Text;usingSystem.Globalization;namespaceWindowsApplication1{//////Form1的摘要说明。///publicclassForm1:System.Windows.Forms.Form{privateSystem.Windows.Forms.MainMenumainMenu1;privateSystem.Windows.Forms.MenuItemmenuItem1;privateSystem.Windows.Forms.MenuItemmenuItem2;privateSystem.Windows.Forms.MenuItemmenuItem3;privateSystem.Windows.Forms.MenuItemmenuItem4;privateSystem.Windows.Forms.PictureBoxpictureBox1;privateSystem.Windows.Forms.PictureBoxpictureBox2;privateSystem.Windows.Forms.MenuItemmenuItem5;privateSystem.Windows.Forms.MenuItemmenuItem6;privateSystem.Windows.Forms.OpenFileDialogopenFileDialog1;privateSystem.Windows.Forms.SaveFileDialogsaveFileDialog1;privateSystem.Windows.Forms.MenuItemmenuItem7;privateSystem.Windows.Forms.MenuItemmenuItem8;privateSystem.Windows.Forms.MenuItemmenuItem9;privateSystem.Windows.Forms.MenuItemmenuItem10;privateSystem.Windows.Forms.MenuItemmenuItem11;privateSystem.Windows.Forms.MenuItemmenuItem12;privateSystem.Windows.Forms.MenuItemmenuItem13;privateSystem.Windows.Forms.MenuItemmenuItem14;privateSystem.Windows.Forms.MenuItemmenuItem15;privateSystem.Windows.Forms.MenuItemmenuItem16;privateSystem.Windows.Forms.MenuItemmenuItem17;privateSystem.Windows.Forms.MenuItemmenuItem18;privateSystem.Windows.Forms.MenuItemmenuItem20;privateSystem.Windows.Forms.Labellabel1;privateSystem.Windows.Forms.Labellabel2;privateSystem.Windows.Forms.MenuItemmenuItem19;privateSystem.Windows.Forms.MenuItemmenuItem21;privateSystem.Windows.Forms.MenuItemmenuItem22;privateSystem.Windows.Forms.MenuItemmenuItem23;privateSystem.Windows.Forms.MenuItemmenuItem24;privateSystem.Windows.Forms.MenuItemmenuItem25;//////必需的设计器变量。///privateSystem.ComponentModel.Containercomponents=null;publicForm1(){////Windows窗体设计器支持所必需的//InitializeComponent();////TODO:在InitializeComponent调用后添加任何构造函数代码//}//////清理所有正在使用的资源。///protectedoverridevoidDispose(booldisposing){if(disposing){if(components!=null){components.Dispose();}}base.Dispose(disposing);}#regionWindows窗体//////privatevoidInitializeComponent(){System.Resources.ResourceManagerresources=newSystem.Resources.ResourceManager(typeof(Form1));this.mainMenu1=newSystem.Windows.Forms.MainMenu();this.menuItem1=newSystem.Windows.Forms.MenuItem();this.men...