• 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 NSImage to get a new NSImage, without drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotate NSImage to get a new NSImage, without drawing


  • Subject: Re: Rotate NSImage to get a new NSImage, without drawing
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 1 Mar 2009 20:47:04 -0800


On 2009 Mar 01, at 14:27, Steve Christensen wrote:

That version only works for a ±90° rotation since you're just swapping the width and height for the rotated image size. A more generalized solution would be:

Thank you, Steve. Yes, yours works for a 45° rotation whereas mine clipped.


Near the end of your code, to make it work, I needed to change
   [transform set];
to
   [transform concat];


On 2009 Mar 01, at 16:42, douglas welton wrote:

I'll offer a couple of other alternatives:

1)  Use Quartz Composer...

2) Use Core Image...

Thanks Douglas. Now I have some motivation to learn those. But it will be after I'm done using all the things I learned during WWDC 2007 :)


_______________________________________________

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: 
 >Re: Rotate NSImage to get a new NSImage, without drawing (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: MacOS X 10.4 and 10.5
  • Next by Date: Re: MacOS X 10.4 and 10.5
  • Previous by thread: Re: Rotate NSImage to get a new NSImage, without drawing
  • Next by thread: Re: Rotate NSImage to get a new NSImage, without drawing
  • Index(es):
    • Date
    • Thread