Return to Snippet

Revision: 33096
at October 6, 2010 03:21 by arpit


Initial Code
UIGraphicsBeginImageContext(srcView.bounds.size);
[srcView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();  

UIImageView* proxy = [[UIImageView alloc] initWithImage:viewImage];

Initial URL


Initial Description


Initial Title
Creating a bitmap image of a view

Initial Tags


Initial Language
Objective C