iOS Draw Circle

Source: Internet
Author: User

/* ADD an arc of a circle to the context's path, possibly preceded by a

Straight line segment. ' (x, y) ' is the center of the arc; ' Radius ' is its

Radius ' StartAngle ' is the angle to the first endpoint of the arc;

' Endangle ' is the angle to the second endpoint of the arc; and

' Clockwise ' is 1 if the arc was to be drawn clockwise, 0 otherwise.

' StartAngle ' and ' endangle ' is measured in radians. */

  " (x, y)" is the center of the arc, and "radius" is its radius; StartAngle "is the end point of the first angular arc; Arc Angle of the second endpoint of "Endangle";

"Clockwise" = = 1 arc is clockwise, otherwise 0.

The radian of "startangle" and "Endangle measurement".

Cg_extern void Cgcontextaddarc (Cgcontextref C, CGFloat x, CGFloat y,

CGFloat radius, cgfloat startangle, cgfloat endangle, int clockwise)

Cg_available_starting (__mac_10_0, __iphone_2_0);

Cgcontextaddarc (context, x, Y, 3, 0, 2*PI, 0); Add a circle with a radius of 3 (x, y) with a circumference of 2*pi,

iOS Draw Circle

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.