How to choose a region in Windows Forms PictureBox?

I want to get part of an image in a PictureBox, allowing the user to select a rectangular area (similar to how you can do this in Photoshop using the selection tool).

How can i do this?

+3
source share
2 answers

You will need to draw a rectangle or lines based on where they clicked and dragged. The starting point is the mouse x, y, and then you get the last point from the mouse version of x, y.

+3
source

, , Graphics.DrawRectangle, Paint .

0

Source: https://habr.com/ru/post/1737182/


All Articles