摘要: using System.Runtime.InteropServices; using System.Drawing; using System.Drawing.Imaging; namespace PickHead { /// /// 一个控制摄像头的类 /// public class Pick { private const int WM_USER = 0x400; private ... 阅读全文
posted @ 2008-08-16 16:40 淮北橘子 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 图片保存到数据库和从数据库读取图片并显示(C#) source: http://www.cnblogs.com/tuyile006/archive/2007/01/08/614718.html 图片保存到数据库的方法: public void imgToDB(string sql) { //参数sql中要求保存的imge变量名称为@images ... 阅读全文
posted @ 2008-08-12 23:44 淮北橘子 阅读(695) 评论(0) 推荐(0) 编辑
摘要: source:http://mennan.kagitkalem.com/ReadingWritingPGMPortableGraphicsMediaImageFilesWithCCSharp.aspx 备注:程序可能有点小问题,代码可以从下面下载。 I demonstrate a simple example in order to show how to read-write PGM fil... 阅读全文
posted @ 2008-08-12 23:37 淮北橘子 阅读(3183) 评论(0) 推荐(0) 编辑
摘要: source:http://mennan.kagitkalem.com/DataCompressionRunningRLEAlgorithmOnBMPAndPGMImageFilesUsingC.aspx Aşağıda, Data Compression için hazırlamış olduğum çalışmayı inceleyebilirsiniz. Bu çalı... 阅读全文
posted @ 2008-08-12 23:33 淮北橘子 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: Source:http://www.cnblogs.com/Dah/archive/2007/08/07/846176.html 以下代码可以用,由于C#中可以显示JPEG,BMP等格式的图像,但是不能显示PGM的图像,所以要在c# winform窗体的PictureBox中显示PGM格式的图片会报错的。下面时Adrian的格式转换代码。可以正常显示,也可以从数据库中读取PGM二进制流来... 阅读全文
posted @ 2008-08-12 23:22 淮北橘子 阅读(1900) 评论(0) 推荐(0) 编辑