how to set image in webview

Posted by mohsinpathan on Stack Overflow See other posts from Stack Overflow or by mohsinpathan
Published on 2010-06-11T06:14:53Z Indexed on 2010/06/11 6:22 UTC
Read the original article Hit count: 232

Filed under:

I am creating runtime images. i want to set that image in to web view. Please give me a hint or document.My source code is given below

CGRect pdfSize = GetPdfSize(UIGraphicsGetCurrentContext(), initialPage, [filePath UTF8String],myTable,mainString);


//UIImageView   *imgV=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 598,768)];
UIImageView *imgV=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, pdfSize.size.width,pdfSize.size.height)];
UIGraphicsBeginImageContext(CGSizeMake(pdfSize.size.width,pdfSize.size.height));


MyDisplayPDFPage(UIGraphicsGetCurrentContext(), initialPage, [filePath UTF8String],myTable,mainString);
imgV.image=UIGraphicsGetImageFromCurrentImageContext();
imgV.image=[imgV.image rotate:UIImageOrientationDownMirrored];

© Stack Overflow or respective owner

Related posts about iphone