GDI + Learning Record (13): arc-Arc

Source: Internet
Author: User
// Draw an arc var G: tgpgraphics; P: tgppen; begin G: = tgpgraphics. create (canvas. handle); P: = tgppen. create (makecolor (255, 0, 0), 2); G. drawarc (p, 11, 32, 300,200,); {parameter 2-5 is an elliptic} p. setcolor (makecolor (0,255, 0); G. drawarc (p, 11,32, 300,200, 90,90); {parameter 6 is the Arc Start degree, starting from the middle right} p. setcolor (makecolor (0, 0, 255); G. drawarc (p, 11, 32, 300,200,180, 90); {parameter 7 is the arc end point, which is the radian from the start point to the end point} p. setcolor (makecolor (255,255, 0); G. drawarc (p, 11, 32, 300,200,270, 90); {It's Just A circle} p. setcolor (makecolor (0, 0, 0); G. drawarc (p, 88,88, 200,100, 0,360); {if it is extended from 0 degrees, it is an elliptical line} p. free; G. free; end;

 

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.