On Jan 26, 2011, at 3:16 AM, Leon Qiao <leon.qiao....@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com