摘要: //C#调用C++的DLL搜集整理的所有数据类型转换方式,可能会有重复或者多种方案,自己多测试 //c++:HANDLE(void *) ---- c#:System.IntPtr //c++:Byte(unsigned char) ---- c#:System.Byte //c++:SHORT(short) ---- c#:System.Int16 //c++:WORD(unsigned short) ---- c#:System.UInt16 //c++:INT(int) ---- c#:System.Int16 //c++:INT(int) ---... 阅读全文
posted @ 2013-05-23 12:47 黑冰.org 阅读(11414) 评论(0) 推荐(2) 编辑
摘要: private void CaptureJpeg() { var catchBmp = new Bitmap(pictureBox1.Width, pictureBox1.Height); var g = Graphics.FromImage(catchBmp); //转换成控件在屏幕上的坐标 var screenPoint = PointToScreen(pictureBox1.Location); //拷贝屏幕区域到Bitmap ... 阅读全文
posted @ 2013-05-23 12:46 黑冰.org 阅读(30568) 评论(3) 推荐(2) 编辑