• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: rotate UIImage based on rotation of UIView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rotate UIImage based on rotation of UIView


  • Subject: Re: rotate UIImage based on rotation of UIView
  • From: Steve Christensen <email@hidden>
  • Date: Fri, 03 Dec 2010 10:15:32 -0800

One thing I noticed is that you're using the transform from wrapperView, which may not exclusively have your modifications applied. Have you tried caching the resultant scale, translation and rotation values from any gestures and then using those values to create a new transform from scratch?

Secondly, does cardFrame have a relationship to wrapperView.frame that makes sense?


On Dec 2, 2010, at 8:22 AM, Allyn Bauer wrote:

> I am creating an iPad application for my employer targeted to 3.2 and above. In it, the user has the ability to move, rotate and resize an image which then gets sent to our server. The image is displayed with a UIImageView which is wrapped with a UIView. This outer UIView is the one which has the appropriate gesture responders attached and also is the one that gets resized/moved/rotated. The image view inside it simply expands to fill the whole outer frame. In this way, the original image is not modified until after all the resizing/rotation/actions have taken place. At that point I then attempt to apply the changes to it and send it to our server.
>
> I have tried to get this working, but I'm afraid I haven't been able to. Here is the code I have so far:
> http://pastie.org/1341720
>
> It doesn't manage to get the correct crop of the rotated image. Occasionally (often) it won't have any of the image at all. I suspect that the issue is the result of a fundamental misunderstanding of something on my part, but I can't figure out what that would be. Any help with the code or advice on the problem would be absolutely fantastic.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >rotate UIImage based on rotation of UIView (From: Allyn Bauer <email@hidden>)

  • Prev by Date: Re: navigation bar tint color issue on iOS 4.2
  • Next by Date: Re: navigation bar tint color issue on iOS 4.2
  • Previous by thread: rotate UIImage based on rotation of UIView
  • Next by thread: Basic HTTP program failed to compile
  • Index(es):
    • Date
    • Thread