資源簡介
數(shù)值分析大作業(yè),圖像處理包括圖像旋轉(zhuǎn),扭曲和水波效果,有問題可以問我,里面包括作業(yè)報(bào)告,可做參考

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Drawing.Imaging;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
using?System.Runtime.InteropServices;
using?System.IO;
namespace?圖像處理
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????????//控件透明處理
????????????Setstyle(Controlstyles.SupportsTransparentBackColor?true);
????????????groupBox1.BackColor?=?Color.Transparent;
????????????groupBox2.BackColor?=?Color.Transparent;
????????????groupBox3.BackColor?=?Color.Transparent;
????????????groupBox4.BackColor?=?Color.Transparent;
????????????label1.BackColor?=?Color.Transparent;
????????????label2.BackColor?=?Color.Transparent;
????????????panel1.BackColor?=?Color.Transparent;
????????????panel2.BackColor?=?Color.Transparent;
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)//打開程序的界面
????????{
????????????Form?f2?=?new?Form2();?
????????????f2.ShowDialog();
????????}
????????#region//全局變量
????????public?string?path?=?“c:\\“;????//初始路徑
????????public?Bitmap?oldpic;
????????public?Bitmap?newpic;?//新圖像
????????public?Bitmap?oldbmp;???????????????//原始水波圖像
????????public?Bitmap?bmp;????????????????//水波用的
????????public?byte[]?m_Info;??????//圖片原始顏色信息
????????public?byte[]?m_Buff;??????//圖片新的顏色信息
????????public?int[]?m_WaveCurrent;???//當(dāng)前波形
????????public?int[]?m_WaveNext;??????//下一幀的波形
????????public?int?m_nBmpWidth;?????????????//圖像寬度
????????public?int?m_nBmpHeight;????????????//圖像高度
????????public?int?m_nBmpWidthBySize;??????//圖片每行占用字節(jié)數(shù)
????????public?bool?waveonoff?=?false;??//是否產(chǎn)生了水波
????????public?bool?movewave?=?false;???//是否有隨鼠標(biāo)移動的水波
????????public?bool?first?=?true;??//是否第一次啟動水波
????????public?bool?firstclick?=?true;??//是否第一次點(diǎn)鼠標(biāo)
????????public?bool?firstchange?=?true;??//是否變形了,針對產(chǎn)生水波
????????public?int?savecount?=?1;???//保存次數(shù)
????????#endregion
????????#region//操作
????????private?void?button1_Click(object?sender?EventArgs?e)//打開文件
????????{
????????????string?filepath;
????????????openFileDialog1.InitialDirectory?=?path;
????????????openFileDialog1.Multiselect?=?true;
????????????openFileDialog1.Filter?=?“所有圖像文件(?*.bmp;?*.pcx;?*.png;?*.jpg;?*.gif;“?+
????????????????“*.tif;?*.ico;?*.dxf;?*.cgm;?*.cdr;?*.wmf;?*.eps;?*.emf)?|?*.bmp;?*.pcx;?*.png;?*.jpg;?*.gif;“?+
????????????????“*.tif;?*.ico;?*.dxf;?*.cgm;?*.cdr;?*.wmf;?*.eps;?*.emf“;
????????????openFileDialog1.FilterIndex?=?3;
????????????openFileDialog1.title?=?“打開圖像文件“;
????????????openFileDialog1.ShowHelp?=?true;
????????????DialogResult?dlgResult?=?openFileDialog1.ShowDialog();
????????????if?(dlgResult?==?DialogResult.OK)
????????????{
????????????????pictureBox1.Image?=?new?Bitmap(openFileDialog1.OpenFile());
????????????????pictureBox2.Image?=?pictureBox1.Image;
????????????????oldpic?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1122392??2013-11-06?09:22??2011011448_張聰_自11_大作業(yè)一\2011011448_張聰_自11.pdf
?????文件?????786486??2012-09-24?15:05??2011011448_張聰_自11_大作業(yè)一\LENA.bmp
?????文件????????894??2013-11-05?19:56??2011011448_張聰_自11_大作業(yè)一\Read?me.txt
?????文件?????800123??2013-10-28?20:26??2011011448_張聰_自11_大作業(yè)一\三次卷積插值.bmp
?????文件?????779230??2013-10-28?20:25??2011011448_張聰_自11_大作業(yè)一\雙線性插值.bmp
?????文件????????187??2013-10-03?22:46??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\App.config
?????文件?????376320??2013-11-06?00:28??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\bin\Release\圖像處理.exe
?????文件????????187??2013-10-03?22:46??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\bin\Release\圖像處理.exe.config
?????文件??????54784??2013-11-06?00:28??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\bin\Release\圖像處理.pdb
?????文件??????22984??2013-11-06?00:27??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\bin\Release\圖像處理.vshost.exe
?????文件????????187??2013-10-03?22:46??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\bin\Release\圖像處理.vshost.exe.config
?????文件????????490??2012-06-06?02:06??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\bin\Release\圖像處理.vshost.exe.manifest
?????文件???????3774??2013-11-03?18:58??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\EYE1.ICO
?????文件??????28303??2013-11-06?00:31??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\Form1.cs
?????文件??????25019??2013-11-05?19:52??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\Form1.Designer.cs
?????文件??????12927??2013-11-05?19:52??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\Form1.resx
?????文件???????1316??2013-11-03?19:42??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\Form2.cs
?????文件???????3460??2013-11-03?19:41??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\Form2.Designer.cs
?????文件??????11969??2013-11-03?19:41??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\Form2.resx
?????文件???????1278??2013-10-04?22:15??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\DesignTimeResolveAssemblyReferences.cache
?????文件???????8122??2013-11-05?19:42??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache
?????文件??????????0??2013-10-04?19:09??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2013-10-04?19:09??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2013-10-04?19:09??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件???????5120??2013-11-03?19:19??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\TempPE\Properties.Resources.Designer.cs.dll
?????文件???????5483??2013-11-06?00:27??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\圖像處理.csproj.FileListAbsolute.txt
?????文件???????1218??2013-11-05?19:52??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\圖像處理.csproj.GenerateResource.Cache
?????文件???????2143??2013-10-04?19:09??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\圖像處理.csprojResolveAssemblyReference.cache
?????文件?????376320??2013-11-06?00:28??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\圖像處理.exe
?????文件???????4340??2013-11-05?19:52??2011011448_張聰_自11_大作業(yè)一\圖像處理\圖像處理\obj\Release\圖像處理.Form1.resources
............此處省略39個文件信息
評論
共有 條評論