Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIGraphicsBeginImageContext(CGSizeMake(ImageView.frame.size.width*4, ImageView.frame.size.height*4));
- [outputView setFrame:CGRectMake(outputView.frame.origin.x, outputView.frame.origin.y, outputView.frame.size.width*4, outputView.frame.size.height*4)];
- [[outputView layer] renderInContext:UIGraphicsGetCurrentContext()];
- CGAffineTransform newtransform = CGAffineTransformMakeScale(4.0, 4.0);
- self.view.transform = newtransform;
- CGRect newFrame = CGRectApplyAffineTransform(self.view.frame, newtransform);
- //CGSize fittingSize = [yourTextView sizeThatFits:CGSizeZero];
- UIGraphicsBeginImageContext(newFrame.size);
- [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
- UIImahe *capImage = UIGraphicsGetImageFromCurrentImageContext();
- UIGraphicsEndImageContext();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement