iphone stroke path used for clipping UIImage
问题 I'm very new to CoreGraphics (although I've been doing iphone programming for a while) Question, I have this snippet that scales proportionally and clips an UIImage to a circle: -(UIImage *)counterpartImageForSchedule:(Schedule *)counterpartSchedule inSize:(CGSize)size { // This function returns a newImage, based on image, that has been: // - scaled to fit in (CGRect) rect // - and cropped within a circle of radius: rectWidth/2 UIImage *image=[UIImage imageNamed:@"fakeuser1.png"]; // when