using System; using System.Drawing; using System.Windows.Forms; namespace ClipImage { public partial class FormImage : Form { #region 自定义对象 private Point position; private Rectangle clip; private NotifyIcon notifyInfo; #endregion public FormImage()
using System; using System.Drawing; using System.Windows.Forms; namespace ClipImage { public partial class FormImage : Form { #region private Point position; private Rectangle clip; #endregion public FormImage() { #region InitializeComponent(); this
Microsoft Visual Studio 2010做的C#屏幕截图与本地图片合并实例,主要代码: Bitmap bitmapText = new Bitmap(iTextWidth, iTextHeight); Bitmap bitmapSource = (Bitmap)Bitmap.FromFile(sSource); //获取源图片的宽和高 int iSourceWidth = bitmapSource.Width; int iSourceHeight = bitmapSource.