AForge.NET ResizeBicubic (C#)
2012-09-16 08:21
183 查看
http://zip.nvp.com.tw/forum.php?mod=viewthread&tid=2210&extra=page%3D16
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing.Imaging; using AForge; using AForge.Imaging; using AForge.Imaging.Filters; namespace AForge_ResizeBicubic_CSharp { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Bitmap sourceImage, filteredImage; Bitmap temp; ResizeBicubic filter = new ResizeBicubic(400, 300); sourceImage = (Bitmap)System.Drawing.Image.FromFile(Application.StartupPath + @"..\..\..\sample9.png"); if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); pictureBox1.Image = null; } if (pictureBox2.Image != null) { pictureBox2.Image.Dispose(); pictureBox2.Image = null; } temp = AForge.Imaging.Image.Clone(sourceImage, sourceImage.PixelFormat); sourceImage.Dispose(); sourceImage = temp; pictureBox1.Image = sourceImage; filteredImage = filter.Apply(sourceImage); pictureBox2.Image = filteredImage; } } } |
相关文章推荐
- AForge.NET ConnectedComponentsLabeling 組件標記 (C#)
- AForge.NET QuadrilateralTransformation (C#)
- C# 启动Windows摄像头类 使用Aforge.net
- AForge.NET BayerFilter (C#)
- AForge.net c#下实现Matlab
- 基于C#和Aforge.net实现图像素描效果
- AForge.NET FillHoles (C#)
- AForge.NET是一个专门为开发者和研究者基于C#框架设计的视频录像
- C#学习之 调用 AForge.NET框架启动摄像头抓拍
- AForge.NET CornersMarker (C#)
- AForge.NET ColorFiltering (C#)
- Aforge.net 一个专门为开发者和研究者基于C#框架设计
- AForge.NET SobelEdgeDetector (C#)
- 使用AForge.NET Framework打开摄像头并截图 C#
- AForge.NET Convolution (C#)
- c# 使用AForge.NET操作摄像头操作代码
- Webcam in C#: AForge.NET
- AForge.NET CannyEdgeDetector (C#)
- AForge.NET BradleyLocalThresholding (C#)
- c# 利用AForge.NET组件操作摄像头