erica / iphone-3.0-cookbook-

Sample Code
912 stars 305 forks source link

+doUnrotateImage: not working #13

Closed jasoncstone closed 12 years ago

jasoncstone commented 13 years ago

I modified your example and found that simply drawing a UIImage into a graphics context and then creating a fresh UIImage removes the orientation by default. The following code does a scale with aspect ratio preservation and orientation correction.

If you see a flaw with this approach, let me know.

Thanks for all the great recipes! Jason