Overview:
In the company, can not install the software themselves, also can not download, but sometimes need screenshots. Use the Printscreen key can only intercept full screen, feel very troublesome. So I decided to write a screenshot tool for myself.
As we all know, QQ screenshot will first intercept the full screen as a picture, and then use this image based on the interception of the necessary parts. This program implements similar methods.
Program run screenshot as follows:
Diagram Center rectangle is the area that will be intercepted
The procedure is very rough, I hope you can put forward valuable opinions.
1, Custom rectangular class MyRectangle
In the QQ screenshot program, the user uses the mouse to draw the screenshot area to be able to adjust the size and the position, has a small rectangle mark each in the 4 side midpoint and 4 vertices each. (as shown in the picture)
There is no such rectangle in the. NET framework, so you want to customize the implementation.
Given the specificity of the class, you do not have to implement the full functionality of rectangle in. Net Framework2.0.