Point screenPoint = 控件.PointToScreen(new Point());
Rectangle rect = new Rectangle(screenPoint, chartCellLine.Size);
Image img = new Bitmap(rect.Width, rect.Height);
Graphics g = Graphics.FromImage(img);
g.CopyFromScreen(rect.X - , rect.Y - , , , rect.Size);
img.Save(strPicPath, System.Drawing.Imaging.ImageFormat.Jpeg); //截图窗体上任意位置的控件
相关文章
- 【C#】WinForm自定义控件及窗体-前言
- C# winform 自定义控件
- C# Winform学习---MDI窗体的设计,PictureBox控件(图片上一页下一页),Timer控件,MenuStrip控件
- C# WinForm窗体控件GroupBox修改边框颜色控件
- c# Winform 继承窗体 无法拖动修改控件大小
- C# WinForm调用UnityWebPlayer Control控件 <学习笔记1>
- C# WINFORM 一般的控件不捕获上下左右按键消息
- C# Winform RichTextBox 控件简单扩展
- C# Winform ListView控件
- C#知识|WinForm项目结构Partial部分类与窗体控件介绍