¡@

Home 

2014/10/15 ¤U¤È 10:05:01

iphone Programming Glossary: cgcontextsetlinejoin

How do I make UILabel display outlined text?

http://stackoverflow.com/questions/1103148/how-do-i-make-uilabel-display-outlined-text

UIColor textColor self.textColor CGContextRef c UIGraphicsGetCurrentContext CGContextSetLineWidth c 1 CGContextSetLineJoin c kCGLineJoinRound CGContextSetTextDrawingMode c kCGTextStroke self.textColor UIColor whiteColor super drawTextInRect rect..

Lag while drawing in ios7

http://stackoverflow.com/questions/19108185/lag-while-drawing-in-ios7

UIGraphicsGetCurrentContext redT greenT blueT 1.0 CGContextSetLineCap UIGraphicsGetCurrentContext kCGLineCapRound CGContextSetLineJoin UIGraphicsGetCurrentContext kCGLineJoinRound CGContextBeginPath UIGraphicsGetCurrentContext CGContextMoveToPoint UIGraphicsGetCurrentContext.. UIGraphicsGetCurrentContext red green blue 1.0 CGContextSetLineCap UIGraphicsGetCurrentContext kCGLineCapRound CGContextSetLineJoin UIGraphicsGetCurrentContext kCGLineJoinRound CGContextMoveToPoint UIGraphicsGetCurrentContext lastPoint.x lastPoint.y ..

How to draw a “speech bubble” on an iPhone?

http://stackoverflow.com/questions/4442126/how-to-draw-a-speech-bubble-on-an-iphone

a pointing triangle at the bottom . The Quartz drawing code that I used is as follows CGRect currentFrame self.bounds CGContextSetLineJoin context kCGLineJoinRound CGContextSetLineWidth context strokeWidth CGContextSetStrokeColorWithColor context MyPopupLayer..

Gradient effect for Line Graph in iPhone

http://stackoverflow.com/questions/4835515/gradient-effect-for-line-graph-in-iphone

self.graphView.frame.size.height CGContextSetLineCap UIGraphicsGetCurrentContext kCGLineCapRound CGContextSetLineJoin UIGraphicsGetCurrentContext kCGLineJoinRound CGContextSetLineWidth UIGraphicsGetCurrentContext 2.0 CGContextSetRGBFillColor..

iPhone smooth sketch drawing algorithm

http://stackoverflow.com/questions/5076622/iphone-smooth-sketch-drawing-algorithm

getValue firstPoint CGContextMoveToPoint context firstPoint.x firstPoint.y CGContextSetLineCap context kCGLineCapRound CGContextSetLineJoin context kCGLineJoinRound for int i 1 i points count i NSValue value points objectAtIndex i CGPoint point value getValue..

Why is UIBezierPath faster than Core Graphics path?

http://stackoverflow.com/questions/6327817/why-is-uibezierpath-faster-than-core-graphics-path

each path CGContextSaveGState ctx configure context the same as uipath CGContextSetLineWidth ctx uipath.lineWidth CGContextSetLineJoin ctx uipath.lineJoinStyle CGContextSetLineCap ctx uipath.lineCapStyle CGContextSetMiterLimit ctx uipath.miterLimit CGContextSetFlatness..