private void buttonRegionSelect_Click(object sender, EventArgs e) { _formRegionSelectWithMouse = new FormRegionSelectWithMouse(_screenCapture); _formRegionSelectWithMouse.MouseSelectionCompleted += _formRegionSelectWithMouse_RegionSelectMouseSelectionCompleted; _formRegionSelectWithMouse.LoadCanvas(sendToClipboard: false); Cursor = Cursors.Arrow; }
private void buttonRegionSelect_Click(object sender, EventArgs e) { _formRegionSelectWithMouse = new FormRegionSelectWithMouse(); _formRegionSelectWithMouse.MouseSelectionCompleted += _formRegionSelectWithMouse_RegionSelectMouseSelectionCompleted; _formRegionSelectWithMouse.LoadCanvas(); }
/// <summary> /// Shows a mouse-driven region selection canvas so you can select a region and then edit the captured image with the default image editor. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripMenuItemRegionSelectEdit_Click(object sender, EventArgs e) { _formRegionSelectWithMouse = new FormRegionSelectWithMouse(); _formRegionSelectWithMouse.MouseSelectionCompleted += _formRegionSelectWithMouse_RegionSelectEditMouseSelectionCompleted; _formRegionSelectWithMouse.LoadCanvas(outputMode: 0); // 0 is for acquiring the dimensions and resolution }
/// <summary> /// Shows a mouse-driven region selection canvas so you can select a region and then save the captured image to the clipboard. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripMenuItemRegionSelectClipboard_Click(object sender, EventArgs e) { _formRegionSelectWithMouse = new FormRegionSelectWithMouse(); _formRegionSelectWithMouse.LoadCanvas(outputMode: 1); // 1 is for saving the captured image to the clipboard }
/// <summary> /// Shows a mouse-driven region selection canvas so you can select a region, have the captured image be sent to the clipboard, auto-saved, and then opened with the default image editor. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripMenuItemRegionSelectClipboardAutoSaveEdit_Click(object sender, EventArgs e) { _formRegionSelectWithMouse = new FormRegionSelectWithMouse(); _formRegionSelectWithMouse.MouseSelectionCompleted += _formRegionSelectWithMouse_RegionSelectClipboardAutoSaveEditMouseSelectionCompleted; _formRegionSelectWithMouse.LoadCanvas(); }
/// <summary> /// Shows a mouse-driven region selection canvas so you can select a region and then have the captured image sent to the clipboard. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripMenuItemRegionSelectClipboard_Click(object sender, EventArgs e) { _formRegionSelectWithMouse = new FormRegionSelectWithMouse(); _formRegionSelectWithMouse.LoadCanvas(); }