iphone email attach image from UIScrollView content
===

I am going to attach scrollview content as image to the email.
Scrollview content is much larger than iphone screen.
So I tried as following.
     CGRect rect = CGRectMake(0, 0, scrollview.bounds.size.width,    scrollview.bounds.size.height);
    UIGraphicsBeginImageContext(rect.size);
    CGContextRef context = UIGraphicsGetCurrentContext();
    [scrollview.layer renderInContext:context];
    UIImage *contentImage = UIGraphicsGetImageFromCurrentImageContext();    
    UIGraphicsEndImageContext();
    
    NSData *imgData = UIImagePNGRepresentation(contentImage);    
    [picker addAttachmentData:imgData mimeType:@"image/png" fileName:@"scrollviewcontent"];


But scroll view content image is always cropped.
Any advice?