Skip to content

Rotation of CGImage (iPhone/iPad) – Improved

September 18, 2010

The code snippet I linked to in my last post essentially worked for rotating the CGImage, but as the user rotates the image more, the image gets cropped more and more. To stop that problem, I made some VERY slight adjustments, check it out:

  1. Hi Connor,

    this peace of code helped me very much doing my fist steps in objective-c 🙂
    Can you please give me some advice how to crop the image to its original size (before it was rotated)? I think your very first version of this code did something like this but it had a littel “bug” because my image was scaled after rotating it.

    Thank you very much

  2. Hi Connor,
    excellent code:) It works for me

  3. rineek permalink

    Thanks Connor,
    It is APR 26 2013 and this method still makes my week brighter. Thanks.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: