rotate UIImage to any 90-degree orientation
Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources
screenshots
source
uiimagerotate.xcodeproj
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.