rotate UIImage to any 90-degree orientation
Objective-C
Permalink
Failed to load latest commit information.
resources initial commit Jul 21, 2012
screenshots switch to smaller screenshot Jul 21, 2012
source initial commit Jul 21, 2012
uiimagerotate.xcodeproj initial commit Jul 21, 2012
readme.markdown

readme.markdown

uiimagerotate

This project contains a category add-on for UIImage that can rotate an image to any 90-degree orientation, with or without left-to-right mirroring. It also includes a couple of UIImage scaling functions and a demo program that lets you see the result of various rotate operations.

All the code is Objective-C, and works only on iOS devices and the simulator. I used Xcode 4.3.3, but you can likely adapt it to any other version.

Once you've built the project, you can rotate the test image to one of four orientations by pressing the big arrows. To activate mirroring, press the button labelled "Mirrored" at the bottom. To deactivate mirroring, press the button again.

screenshot

The test image is from Andy Helms. If anyone objects to my using that image in this project, let me know, and I'll pick a different one.

Watch my blog for more technical topics such as this one.