Difference between Arc and arcto in MFC

Source: Internet
Author: User
The arc and arcto functions are the arc-drawing functions under MFC, which are actually formed by intercepting a part from an elliptic.

Bool Arcto ( Lpcrect Lprect , Point Ptstart , Point Ptend );Here, lprect is the rectangular area to which the arc belongs. The elliptic is generated based on this rectangle. Ptstart and ptend are used to specify the Arc Start Point and end point. The actual Arc Start Point and end point are the intersection points between ptstart/ptend and the geometric center of the rectangle. The difference between Arc and arcto is that the arc function only draws a given arc and does not affect the position of the paint brush; while the arcto function will draw a straight line from the point where the paint brush was originally located to the starting point of the arc. After the painting arc is completed, the paint brush will be moved to the end point of the arc, this affects the position of the paint brush. Arc effect: arcto Effect

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.