CS185c
Chris Pollett
Nov. 16, 2009
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 2.0); CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor); CGContextMoveToPoint(context, 100.0f, 100.0f); CGContextAddLineToPoint(context, 200.0f, 200.0f); CGContextStrokePath(context);
Which of the following statements is true:
CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor);
[UIColor colorWithRed:1.0f green: 0.0f blue 0.0f alpha:1.0f];
CGPoint drawPoint = CGPointMake(100.0f, 100.0f); [image drawAtPoint: drawPoint];
CGRect theRect = CGRectMAke(0, 0, 100, 100); CGContextAddEllipseInRect(context, theRect); CGContextDrawPath(context, kCGPathFillStroke);