Use C # to achieve screenshot function (1) (similar to QQ screenshot)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.