ScreenCapDx

所属分类:DirextX编程
开发工具:Visual C++
文件大小:79KB
下载次数:285
上传日期:2008-09-13 14:45:36
上 传 者xuxiangwin
说明:  用DreictX进行抓屏是很简单的,DirectX提供了很优雅的实现。 每个DirectX程序都包含一个被我们称作缓冲的内存区域,其中保存了和该程序有关的显存内容,这在程序中被称作后台缓冲(Back Buffer),有些程序有不止一个的后台缓冲。还有一个缓冲,在默认情况下每个程序都可以访问-前台缓冲。前台缓冲保存了和桌面相关的显存内容,实质上就是屏幕图像。 我们的程序通过访问前台缓冲就可以捕捉到当前屏幕的内容。由DirectX的底层优化机制做保证,我们的抓屏效率是很高的,至少比GDI方式高。
(DreictX carried out with screenshots is very simple, DirectX provides a very elegant implementation. Each contains a DirectX program was what we call the buffer memory region, which is preserved and the procedures related to memory content, which in the procedure, known as the background buffer (Back Buffer), some programs have more than one of the background buffer . There is also a buffer, by default, each program can access- front buffer. Front buffer to preserve the memory and desktop-related content, in essence, is the screen image. Our procedures by visiting the front buffer can capture the current screen content. From the bottom of DirectX optimized mechanism that we are screenshots of the efficiency is very high, at least way more than a high GDI.)

文件列表:
ScreenCapDx\AviFile.cpp (9712, 2006-09-15)
ScreenCapDx\AviFile.h (1072, 2003-11-14)
ScreenCapDx\ico00001.ico (3774, 2003-08-13)
ScreenCapDx\icon1.ico (3774, 2003-08-13)
ScreenCapDx\Release (0, 2006-09-15)
ScreenCapDx\resource.h (1488, 2003-08-13)
ScreenCapDx\ScreenCapture.7.00.sln (931, 2006-09-15)
ScreenCapDx\ScreenCapture.7.00.vcproj (4176, 2006-09-15)
ScreenCapDx\ScreenCapture.7.10.sln (1201, 2006-09-15)
ScreenCapDx\ScreenCapture.7.10.vcproj (4533, 2006-09-15)
ScreenCapDx\ScreenCapture.7.10.vssscc (256, 2006-09-15)
ScreenCapDx\ScreenCapture.cpp (19244, 2006-09-15)
ScreenCapDx\ScreenCapture.h (39, 2003-07-04)
ScreenCapDx\ScreenCapture.ico (21462, 2003-08-13)
ScreenCapDx\ScreenCapture.rc (4204, 2003-08-14)
ScreenCapDx\ScreenCapture.sln (1196, 2006-09-15)
ScreenCapDx\ScreenCapture.vcproj (5522, 2006-09-15)
ScreenCapDx\ScreenCapture.vcproj.vspscc (256, 2006-09-15)
ScreenCapDx\ScreenCapture.vssscc (256, 2006-09-15)
ScreenCapDx\small.ico (23558, 2001-06-05)
ScreenCapDx\stdafx.cpp (300, 2003-07-04)
ScreenCapDx\stdafx.h (459, 2006-09-15)

Screen Capture: This application captuers the contents of the screen using DirectX. Start the application and click anywhere on the client area - the screen at that moment would be captured and saved to file Desktop.bmp This Capturing Uses the FrontBuffer of the DirectX Application to get the content of the Screen. By design, the Front Buffer accessing is slow - and can not be used in performance critical applications. And also this capturing technique doesnot capture the mouse. However the content quality produced would be good with the MPG4 codec. For performance applications try considering the WindowsMediaEncoderAPI. WindowsMediaEncoderAPI includes a ScreenCapture Codec and can give optimal results - and also captures the mouse.

近期下载者

相关文件


收藏者