91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.43MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-19
  • 語言: C#
  • 標簽: 平移??鏡像??縮放??旋轉??

資源簡介

c#數字圖像處理之幾何運算,包含在c#中對圖像進行處理的平移、鏡像變換、縮放和旋轉的編程實現。

資源截圖

代碼片段和文件信息

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

namespace?geometry_operations
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????private?void?open_Click(object?sender?EventArgs?e)
????????{
????????????OpenFileDialog?opnDlg?=?new?OpenFileDialog();
????????????opnDlg.Filter?=?“所有圖像文件?|?*.bmp;?*.pcx;?*.png;?*.jpg;?*.gif;“?+
????????????????“*.tif;?*.ico;?*.dxf;?*.cgm;?*.cdr;?*.wmf;?*.eps;?*.emf|“?+
????????????????“位圖(?*.bmp;?*.jpg;?*.png;...)?|?*.bmp;?*.pcx;?*.png;?*.jpg;?*.gif;?*.tif;?*.ico|“?+
????????????????“矢量圖(?*.wmf;?*.eps;?*.emf;...)?|?*.dxf;?*.cgm;?*.cdr;?*.wmf;?*.eps;?*.emf“;
????????????opnDlg.title?=?“打開圖像文件“;
????????????opnDlg.ShowHelp?=?true;
????????????if?(opnDlg.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????curFileName?=?opnDlg.FileName;
????????????????try
????????????????{
????????????????????curBitmap?=?(Bitmap)Image.FromFile(curFileName);
????????????????}
????????????????catch?(Exception?exp)
????????????????{
????????????????????MessageBox.Show(exp.Message);
????????????????}
????????????}
????????????Invalidate();
????????}

????????private?void?close_Click(object?sender?EventArgs?e)
????????{
????????????this.Close();
????????}

????????private?void?Form1_Paint(object?sender?PaintEventArgs?e)
????????{
????????????Graphics?g?=?e.Graphics;
????????????if?(curBitmap?!=?null)
????????????{
????????????????g.DrawImage(curBitmap?160?20?curBitmap.Width?curBitmap.Height);
????????????}
????????}

????????private?void?translation_Click(object?sender?EventArgs?e)
????????{
????????????if?(curBitmap?!=?null)
????????????{
????????????????translation?traForm?=?new?translation();
????????????????if?(traForm.ShowDialog()?==?DialogResult.OK)
????????????????{
????????????????????Rectangle?rect?=?new?Rectangle(0?0?curBitmap.Width?curBitmap.Height);
????????????????????System.Drawing.Imaging.BitmapData?bmpData?=?curBitmap.LockBits(rect?System.Drawing.Imaging.ImageLockMode.ReadWrite?curBitmap.PixelFormat);
????????????????????IntPtr?ptr?=?bmpData.Scan0;
????????????????????int?bytes?=?curBitmap.Width?*?curBitmap.Height;
????????????????????byte[]?grayValues?=?new?byte[bytes];
????????????????????System.Runtime.InteropServices.Marshal.Copy(ptr?grayValues?0?bytes);

????????????????????int?x?=?Convert.ToInt32(traForm.GetXOffset);
????????????????????int?y?=?Convert.ToInt32(traForm.GetYOffset);

????????????????????byte[]?tempArray?=?new?byte[bytes];
????????????????????//Array.Clear(tempArray?0?bytes);
????????????????????for?(int?i?=?0;?i?????????????????????{
????????????????????????tempArray[i]?=?255;
????????????????????}

????????????????????for?(int?i?=?0;?i?????????????????????{
??????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????48128??2008-08-20?19:10??c#數字圖像處理之幾何運算\image\Thumbs.db

?????文件????1440054??2007-09-24?05:42??c#數字圖像處理之幾何運算\image\雙線性插值.bmp

?????文件????1440054??2007-09-28?01:20??c#數字圖像處理之幾何運算\image\圖像旋轉.bmp

?????文件?????174678??2008-08-20?03:18??c#數字圖像處理之幾何運算\image\圖像旋轉對話框.bmp

?????文件????1440054??2007-09-24?05:24??c#數字圖像處理之幾何運算\image\圖像縮放.bmp

?????文件????1440054??2007-09-20?00:55??c#數字圖像處理之幾何運算\image\平移原圖像.bmp

?????文件????1440054??2007-09-20?01:03??c#數字圖像處理之幾何運算\image\平移后圖像.bmp

?????文件?????152294??2008-08-19?23:28??c#數字圖像處理之幾何運算\image\平移對話框.bmp

?????文件????1440054??2007-09-24?05:41??c#數字圖像處理之幾何運算\image\最近鄰插值.bmp

?????文件?????351654??2008-08-20?03:00??c#數字圖像處理之幾何運算\image\縮放對話框.bmp

?????文件????1440054??2007-09-20?06:13??c#數字圖像處理之幾何運算\image\鏡像后圖像.bmp

?????文件?????207014??2008-08-20?00:04??c#數字圖像處理之幾何運算\image\鏡像對話框.bmp

?????文件??????32768??2008-08-20?03:15??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\bin\Debug\geometry?operations.exe

?????文件??????60928??2008-08-20?03:15??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\bin\Debug\geometry?operations.pdb

?????文件???????5632??2005-12-08?22:51??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\bin\Debug\geometry?operations.vshost.exe

?????文件??????15949??2007-09-28?01:05??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\Form1.cs

?????文件???????5318??2007-09-28?00:50??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\Form1.Designer.cs

?????文件???????5814??2007-09-28?00:50??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\Form1.resx

?????文件???????4646??2007-09-26?05:58??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\geometry?operations.csproj

?????文件????????749??2008-08-19?23:56??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\mirror.cs

?????文件???????4832??2008-08-19?23:55??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\mirror.Designer.cs

?????文件???????5814??2008-08-19?23:55??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\mirror.resx

?????文件???????1083??2008-08-20?00:20??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\obj\Debug\geometry?operations.csproj.GenerateResource.Cache

?????文件??????32768??2008-08-20?03:15??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\obj\Debug\geometry?operations.exe

?????文件??????60928??2008-08-20?03:15??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\obj\Debug\geometry?operations.pdb

?????文件????????180??2008-08-19?23:09??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\obj\Debug\geometry_operations.Form1.resources

?????文件????????180??2008-08-19?23:55??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\obj\Debug\geometry_operations.mirror.resources

?????文件????????180??2008-08-19?23:09??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\obj\Debug\geometry_operations.Properties.Resources.resources

?????文件????????180??2008-08-20?00:20??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\obj\Debug\geometry_operations.rotation.resources

?????文件????????180??2008-08-19?23:16??c#數字圖像處理之幾何運算\program\geometry?operations\geometry?operations\obj\Debug\geometry_operations.translation.resources

............此處省略35個文件信息

評論

共有 條評論