void captureScreen(object sender, EventArgs e) { Size size = ScreenUtils.getTotalScreenSize(); Point point = ScreenUtils.getLeftTopMostPoint(); FileUtils.UploadImage(false, Size.Empty, Point.Empty, point, new Point(size.Width + point.X, size.Height + point.Y), Properties.Settings.Default.PictureFormat); }
private void resize(System.Object sender, System.EventArgs e) { Size size = ScreenUtils.getTotalScreenSize(); Point point = ScreenUtils.getLeftTopMostPoint(); this.MaximumSize = size; bool Result = MoveWindow(this.Handle, point.X, point.Y, size.Width, size.Height, true); }
private void save() { this.drawing = false; this.Invalidate(); this.Close(); Rectangle rect = getRectangle(); if (rect == null || rect.Size == new Size(0, 0)) { return; } Point point = ScreenUtils.getLeftTopMostPoint(); Point location = new Point(rect.Location.X + point.X, rect.Location.Y + point.Y); FileUtils.UploadImage(false, Size.Empty, Point.Empty, location, new Point(location.X + rect.Width, location.Y + rect.Height), ".png"); }