title: CGContext line drawing: CGContextFillPath not working?
body: <p>Anyone have any idea why CGContextFillPath won't work in the code snippet below? I'm using the following code to draw to a UIImageView. It's stroking the path correctly, but ignoring CGContextFillPath.</p>
  
  <pre><code>UIGraphicsBeginImageContext(self.frame.size);
  [drawingView.image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
  CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound);
  CGContextSetLineWidth(UIGraphicsGetCurrentContext(), 5.0);
  CGContextSetAllowsAntialiasing(UIGraphicsGetCurrentContext(), YES);
  CGContextSetRGBStrokeColor(UIGraphicsGetCurrentContext(), 1.0, 0.0, 0.0, 1.0);
  CGContextSetRGBFillColor(UIGraphicsGetCurrentContext(), 1.0, 0.0, 0.0, 1.0);
  CGContextBeginPath(UIGraphicsGetCurrentContext());
  CGContextMoveToPoint(UIGraphicsGetCurrentContext(), lastPoint.x, lastPoint.y);
  CGContextAddLineToPoint(UIGraphicsGetCurrentContext(), firstMovedTouch.x, firstMovedTouch.y);
  CGContextStrokePath(UIGraphicsGetCurrentContext());
  CGContextFillPath(UIGraphicsGetCurrentContext());
  drawingView.image = UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  </code></pre>