UIBezierPath and CGContext class, uibezierpath
UIBezierPath and CGContext
CGContextSetLineWidth (ctr, 10); // describes and fills the edge
CGContextDrawPath (ctr, kCGPathFillStroke );
UIBezierPath and CGContext
VoidCGContextSetLineWidth (CGContextRef c, CGFloat width); // you can specify the width of an edge.
VoidCGContextAddLineToPoint (CGContextRef c, CGFloat x, CGFloat y); // Add a line to a certain point
VoidCGContextSetLineCap (CGContextRef c, CGLineCap cap); // you can specify the style at the end of a line segment header.
VoidCGContextSetLineJoin (CGContextRef c, CGLineJoin join); // you can specify the line segment turning point style.
VoidCGContextSetRGBStrokeColor (CGContextRef context, CGFloat red,
CGFloat green, CGFloat blue, CGFloat alpha); // set the color.
+ (UIBezierPath *) bezierPath; // create UIBezierPath
+ (UIBezierPath *) bezierPathWithRect :( CGRect) rect; // create a quadrilateral voidCGContextAddRect (CGContextRef c, CGRect rect)
+ (UIBezierPath *) bezierPathWithOvalInRect :( CGRect) rect; // create a circular voidCGContextAddEllipseInRect (CGContextRef context, CGRect rect)
+ (UIBezierPath *) Configure :( CGRect) rect cornerRadius :( CGFloat) cornerRadius; // create an arc round (CGContextRef c, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle, int clockwise)
+ (UIBezierPath *) bezierPathWithRoundedRect :( CGRect) rect byRoundingCorners :( UIRectCorner) corners cornerRadii :( CGSize) cornerRadii; // create a weird Quadrilateral
+ (UIBezierPath *) bezierPathWithArcCenter :( CGPoint) center radius :( CGFloat) radius startAngle :( CGFloat) startAngle endAngle :( CGFloat) endAngle clockwise :( BOOL) clockwise; // create an arc, it can be clockwise or counterclockwise.
+ (UIBezierPath *) bezierPathWithCGPath :( CGPathRef) CGPath;
-(Void) moveToPoint :( CGPoint) point; // you can specify the start point.
-(Void) addLineToPoint :( CGPoint) point; // Add a line to a certain point
-(Void) addArcWithCenter :( CGPoint) center radius :( CGFloat) radius startAngle :( CGFloat) startAngle endAngle :( CGFloat) endAngle clockwise :( BOOL) clockwise; // Add an arc, it can be clockwise or counterclockwise.
-(Void) closePath; // close path (connection start point and last point)
Void CGContextClosePath (CGContextRef c)