摘要: C# 数字图像处理转载http://dongtingyueh.blog.163.com/ 阅读全文
posted @ 2012-10-27 23:19 Lance Yang 阅读(159) 评论(0) 推荐(0) 编辑
摘要: namespace ImageProcessor{ class RGBImage { private Bitmap bitmap; public RGBImage(Bitmap bitmap) { this.bitmap = bitmap; } private int GetWidth() { return this.bitmap.Size.Width; } private int GetHeight() { return this.bitmap.Size.Height; } private C... 阅读全文
posted @ 2012-10-27 23:02 Lance Yang 阅读(336) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Drawing;using System.Drawing.Imaging;using System.Drawing.Drawing2D;namespace Tutorial{ class WaterMark { [STAThread] static void Main(string[] args) { //set a working directory string WorkingDirectory = @"C:\Documents and Settings\administrator.JAZZMINE\My Documents.. 阅读全文
posted @ 2012-10-27 22:15 Lance Yang 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 一、图片上加文字://using System.Drawing;//using System.IO;//using System.Drawing.Imaging;private void AddTextToImg(string fileName,string text){ if(!File.Exists(MapPath(fileName))) { throw new FileNotFoundException("The file don't exist!"); } if( text == string.Empty ) { return; } //还需要判断文件类型是 阅读全文
posted @ 2012-10-27 22:12 Lance Yang 阅读(592) 评论(0) 推荐(0) 编辑