复制屏幕的一部分 [英] Copy Part of the Screen
问题描述
嘿;)
遇到问题了.我想写一个小程序.我有2个屏幕.
我想复制左侧屏幕的一部分,并将其显示在我的程序的右侧屏幕上.到目前为止听起来很容易.我已经在C#中做到了.
好了,问题是,我想在游戏运行时复制零件.因此,简单的桌面截屏类将无法正常工作.如果游戏正在运行,它们只会返回黑色图像.我需要直接访问屏幕的后台缓冲区...
有人可以帮忙吗?
我自己可以使用DirectX 11进行操作,但这将是一个巨大的矫kill过正...
问候,
Shera
Hey ;)
Got a problem. I want to write a small program. I have 2 Screens.
I want to copy a part of the left screen and display it in my program on the right screen. Sounds pretty easy so far. I did it already in C#.
Well the problem is, that i want to copy the part while a game is running. So simple Desktop-Screenshot-Classes wont work. They just return a black image if game is running. I need a direct access to the backbuffer of the screen ...
Anyone can help ?
I could do it myself using DirectX 11, but that would be a huge overkill...
greets,
Shera
推荐答案
看看该文章 [ ^ ] a href ="http://www.codeproject.com/script/Membership/View.aspx?mid=960789">淡入淡出(Amit BS) [ BitBlt [
Take a look at that article[^] from Fade (Amit BS)[^].
It probably will help you. The article uses the BitBlt[^] function.
Hope this helps...
这篇关于复制屏幕的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!