上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 78 下一页
摘要: 1) 安装directX sdk 2)打开安装目录下的dshow.dsw,进行编译 3)在VC++的Tools/Option/Directory的Include和Library中分别加入 C:/DXSDK/Include C:/DXSDK/SAMPLES/C++/DIRECTSHOW/BASECLA... 阅读全文
posted @ 2013-11-15 15:59 毛毛虫的薄刻 阅读(121) 评论(0) 推荐(0) 编辑
摘要: // TODO: 在此添加控件通知处理程序代码height=width=widthBytes=0;m_screen.SetWindowPos(&CWnd::wndBottom,0,0,720,576, SWP_NOMOVE | SWP_SHOWWINDOW);UpdateWindow();main_... 阅读全文
posted @ 2013-11-15 10:56 毛毛虫的薄刻 阅读(217) 评论(0) 推荐(0) 编辑
摘要: // TODO: 在此添加控件通知处理程序代码height=width=widthBytes=0;m_screen.SetWindowPos(&CWnd::wndBottom,0,0,720,576, SWP_NOMOVE | SWP_SHOWWINDOW);UpdateWindow();main_... 阅读全文
posted @ 2013-11-15 10:55 毛毛虫的薄刻 阅读(219) 评论(0) 推荐(0) 编辑
摘要: height=width=widthBytes=0;m_screen.SetWindowPos(&CWnd::wndBottom,0,0,720,576, SWP_NOMOVE | SWP_SHOWWINDOW);UpdateWindow();main_window_handle = m_scree... 阅读全文
posted @ 2013-11-14 18:57 毛毛虫的薄刻 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #include void CshowpicDlg::OnBnClickedButton3(){// TODO: 在此添加控件通知处理程序代码 height=width=widthBytes=0;m_screen.SetWindowPos(&CWnd::wndBottom,0,0,720,576, ... 阅读全文
posted @ 2013-11-14 14:58 毛毛虫的薄刻 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 在DirectShow的视频图像上叠加线条和文字最近一直在从事工业测量方面的开发工作,难免会用到各种各样的相机,其中支持DX的USB相机开发起来比较方便,由于工作需要经常要在视频图像上叠加线条和文字,图1便是我最近一段时间写的一套工业检测系统,图像是从USB相机中实时获取的。看到网上有些帖子也在讨论... 阅读全文
posted @ 2013-11-13 09:23 毛毛虫的薄刻 阅读(199) 评论(0) 推荐(0) 编辑
摘要: // showpicDlg.cpp : 实现文件//#include "stdafx.h"#include "showpic.h"#include "showpicDlg.h"#ifdef _DEBUG#define new DEBUG_NEW#endif// 用于应用程序“关于”菜单项的 CAbo... 阅读全文
posted @ 2013-11-13 08:51 毛毛虫的薄刻 阅读(157) 评论(0) 推荐(0) 编辑
摘要: DirectDraw对象DirectDraw对象是DirectDraw应用程序的核心.它是你在建立DirectDraw应用程序时所要创建的第一个对象,再用它来创建所有其它相关的对象.通过调用DirectDrawCreate函数可以创建一个DirectDraw对象.DirectDraw对象通过IDir... 阅读全文
posted @ 2013-11-11 09:35 毛毛虫的薄刻 阅读(152) 评论(0) 推荐(0) 编辑
摘要: DDSURFACEDESC2 结构定义一个需求的平面.下面的例子演示了结构的定义和标志位的设定: // Create the primary surface with one back buffer. ZeroMemory(&ddsd, sizeof(ddsd)); ddsd.dwSize = si... 阅读全文
posted @ 2013-11-11 09:06 毛毛虫的薄刻 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 函数声明function SetCooperativeLevel(hWnd: HWND; dwFlags: DWORD): HResult; stdcall;参数介绍hWnd DirectDraw具体指向的窗体,在所有的情况下,只需使用主窗体句柄。dwFlags控制标志参数,直接影响DirectDr... 阅读全文
posted @ 2013-11-11 08:31 毛毛虫的薄刻 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 78 下一页