当前注册人数107614人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB   站内搜索 BBS讨论社区 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

TeboScreen: Basic C# Screen Capture Application

一个简单的C#屏幕捕捉(截屏)应用程序源代码

2007年12月17日
C# (C# 1.0, C# 2.0, C# 3.0), Dev, Design
此程序的功能是:截取整个屏幕的图片,或者截取一个区域的图像(通过鼠标拖动选择范围)。
 
相关知识
class ScreenShot
     {
     public static void CaptureImage(Point SourcePoint, Point DestinationPoint, 
         Rectangle SelectionRectangle, string FilePath)
         {
         using (Bitmap bitmap = new Bitmap(SelectionRectangle.Width, 
             SelectionRectangle.Height))
             {
             using (Graphics g = Graphics.FromImage(bitmap))
                 {
                 g.CopyFromScreen(SourcePoint, DestinationPoint, 
                     SelectionRectangle.Size);
                 }
             bitmap.Save(FilePath, ImageFormat.Bmp);
             }
         }
     }
源代码原文下载:
TeboScreen: Basic C# Screen Capture Application This application captures the screen in two different ways. * Capture Screen: this does what is says; it basically captures the whole of the screen once the file name of the resulting image has been specified. * Capture Area: holding down the left mouse button, users draw a rectangle specifying which part of the screen they wish to capture. On releasing the left mouse button, the user selects a file name and the area behind the drawn rectangle is captured to this file.

源码图片

从本站下载附件及源代码(1个附件,已经成功下载307次)

最值得关注的外文源代码

An Alternate Way of Writing a Multithreaded GUI in C#
Falling Snow on Your Desktop
Optimizing screen area using Mouse Gestures
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论68次,此处显示最近20次评论! 查看所有评论

aken088  2010年02月25日
非常好!谢谢
zishsh  2010年02月14日
好东东,太好了
keyond  2010年01月25日
好像很好
菜菜结晶  2009年12月15日
好像很好
houkun  2009年12月02日
正在需要中
oceanseazhy  2009年07月04日
谢找了很久
zxh  2009年06月29日
好东西~是不是和QQ的功能一样?
zgjfish  2009年06月09日
谢谢
khfy1986  2009年05月23日
学习
wpbao  2009年05月20日
很有用,谢谢
水冰寒  2009年05月18日
ding....
zj  2009年05月04日
值的学习
luotao  2009年04月03日
不错
yudongliu  2009年03月31日
不错呀
lpyedge  2009年03月13日
无法实现根据句柄截图
facies_327  2009年02月12日
近来一直找这个,谢谢了
zhang  2009年01月14日
我想找很久了,学习
bb  2009年01月13日
学习下
bb  2009年01月13日
学习下
283044290  2009年01月11日
正好用得上,太棒了!正点!
字数在300字内
请如实评论
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved   免责声明
京ICP备08011023号