摘要:
C# 数字图像处理转载http://dongtingyueh.blog.163.com/ 阅读全文
摘要:
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... 阅读全文
摘要:
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.. 阅读全文
摘要:
一、图片上加文字://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; } //还需要判断文件类型是 阅读全文