Re: Image preview with UIWebView
Re: Image preview with UIWebView
- Subject: Re: Image preview with UIWebView
- From: Kyle Sluder <email@hidden>
- Date: Wed, 26 Jan 2011 08:15:11 -0800
On Jan 26, 2011, at 3:16 AM, Leon Qiao <email@hidden> wrote:
> Hi Kyle,
>
> Thanks for your advise. I found the UIImage really wraps something that can be used to read the raw image file. Maybe I need to check the file extension and provide a UIImageView.
Yes, UIImage wraps CGImage. This is why I gave you ideas for creating a CGImage and then wrapping it with a UIImage.
The documentation doesn't say that you can create a UIImage directly from anything other than a very few formats. The documentation could very well be out of date; UIImage might now use ImageIO to read the vast swath of formats supported by that framework. If that is the case, +[UIImage imageWithContentsOfFile:] might work for your needs.
--Kyle Sluder_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden