Core Graphics draw line with outline
问题 I'm drawing an arbitrary line with Core Graphics with a width of 4 pixels, now I would like this line to have a 1 pixel outline of another colour. I can't see any CG functions that would achieve this "out of the box" but I'm looking for suggestions on how it could be done. This is my existing code: CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetLineWidth(context, 4.0); CGPoint curPoint = [(NSValue*)[points objectAtIndex:0] CGPointValue]; CGContextMoveToPoint(context,