Tutorial by Examples

- (UIImage *)drawImageBySize:(CGSize)size quality:(CGInterpolationQuality)quality { UIGraphicsBeginImageContextWithOptions(size, NO, 0.0); CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetInterpolationQuality(context, quality); [self drawInRect: CGRectMake (0, 0...

Page 1 of 1