首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

用c#写个程序将整张网页截图并保存,请高手给思路和代码!解决方法

2012-02-06 
用c#写个程序将整张网页截图并保存,请高手给思路和代码! 用c#写个程序将整张网页截图并保存,请高手给思路

用c#写个程序将整张网页截图并保存,请高手给思路和代码!

用c#写个程序将整张网页截图并保存,请高手给思路和代码!

谢谢!

[解决办法]
http://www.codeproject.com/internet/htmlimagecapture.asp
[解决办法]
http://www.codeproject.com/csharp/screen_capturing.asp

http://www.codeproject.com/csharp/imagecapture.asp

http://www.codeproject.com/csharp/ScreenCapture.asp
[解决办法]
string strKey = string.Empty;//声明一个要发送的Key
//设置这个Key为键盘上的Print Screen SysRq
strKey = "{PRTSC} ";
//发送这个键,等待消息被处理
System.Windows.Forms.SendKeys.SendWait(strKey);
System.Windows.Forms.SendKeys.Flush();
//得到剪贴版中发送键后存储的Bitmap
object objImage = System.Windows.Forms.Clipboard.GetDataObject().GetData(DataFormats.Bitmap);

[解决办法]
考虑网页超长出显示器范围 我想保存
http://www.codeproject.com/internet/htmlimagecapture.asp
有用么
[解决办法]
你创建一个WebBrower 打开要打印的网页
再调用WebBrower.DrawToBitmap(bmp);
保存bml就可以了

//不知有没写错
//错了见谅哈
[解决办法]
搞定了 滚屏拼接 把像素值取就行

热点排行