Teamviewer,VNC如何在窗口启动时捕获登录屏幕的图像? [英] How Teamviewer , VNC can capture image of Login Screen when window startup ?

查看:227
本文介绍了Teamviewer,VNC如何在窗口启动时捕获登录屏幕的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究VNC,在NVNC(C#)的源代码中,我看到它使用了CopyFromScreen函数:



public static Bitmap CreateScreenCapture(Rectangle r)

{

试试

{

int width = r.Width;

int height = r.Height;

Bitmap bitmap = new Bitmap(width,height);

Graphics g = Graphics.FromImage(bitmap);

g.CopyFromScreen(rX,rY,0,0,新尺寸(宽度,高度));

返回位图;

}

catch(例外)

{

System.Threading.Thread.Sleep(500);

试试

{

int width = r.Width;

int height = r.Height;

位图位图=新的位图(宽度,高度);

图形g = Graphics.FromImage(位图);

g.CopyFromScreen(rX,rY,0,0,new尺寸(宽度,高度));

}

catch(例外)

{

返回null;

}

返回null;

}

}



然后如何捕获LOG ON WINDOW并发送给客户端(我知道窗口服务无法在LOG ON上捕获图像)



我读了一些文章,了解一下截屏的一些方法:

+使用GDI

+使用DirectX(我已尝试使用slimX并且无法正常工作)

+使用镜像驱动程序(没有项目考试,想知道它是否可以在窗口服务拍摄图像)

+使用Window Media(没有项目考试,想知道它是否可以在窗口服务拍摄图像)

.....
我希望每个人都帮助我,非常感谢

解决方案

请帮助我,如果有人可以帮助我,我准备捐款

Hi , i'm research about VNC , at source code of NVNC ( C# ), I see it use CopyFromScreen function :

public static Bitmap CreateScreenCapture(Rectangle r)
{
try
{
int width = r.Width;
int height = r.Height;
Bitmap bitmap = new Bitmap(width, height);
Graphics g = Graphics.FromImage(bitmap);
g.CopyFromScreen(r.X, r.Y, 0, 0, new Size(width, height));
return bitmap;
}
catch (Exception)
{
System.Threading.Thread.Sleep(500);
try
{
int width = r.Width;
int height = r.Height;
Bitmap bitmap = new Bitmap(width, height);
Graphics g = Graphics.FromImage(bitmap);
g.CopyFromScreen(r.X, r.Y, 0, 0, new Size(width, height));
}
catch (Exception)
{
return null;
}
return null;
}
}

Then how can it capture LOG ON WINDOW and send to clients ( what i know is window service can't capture Image at LOG ON )

I read some articles , know about some way to take screenshot :
+ Using GDI
+ Using DirectX ( I have try slimX and it's not working )
+ Using Mirror Driver ( no project examle , wonder if it can take image at window service )
+ Using Window Media ( no project examle , wonder if it can take image at window service )
.....
I hope everybody help me , thank you very much

解决方案

Please help me , i ready to donate if anyone can help me


这篇关于Teamviewer,VNC如何在窗口启动时捕获登录屏幕的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆