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?
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.
, , Graphics.DrawRectangle, Paint .
Graphics.DrawRectangle
Source: https://habr.com/ru/post/1737182/More articles:UberCart statistics on added products - statisticsPHP doesn't return errors at all - phpBrowse / Select assemblies from the PAC or elsewhere - c #Resize a MATLAB shape - matlabHow to draw “on top” of hosted controls in .NET? - c #Nested lambda expressions and string cultures - c #Я (думаю) Я хочу использовать BItWise Operator для проверки свойства useraccountcontrol! - c#Which book should I read as an alternative to First Servlets and JSPs? - javaPassing data to a data template selector - wpfreturn value of main () in windows - windowsAll Articles