text 16 Apr

example from the last post:

UIGraphicsBeginImageContext(mapWebView.bounds.size);
[mapWebView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *snap = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
CGImageRef snapImage = [snap CGImage];
//crop
CGImageRef resizedImage = CGImageCreateWithImageInRect(snapImage, CGRectMake(100.0f, 100.0f, 121.0f, 121.0f));
CGImageRelease(snapImage);


Design crafted by Prashanth Kamalakanthan. Content powered by Tumblr.