• 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: Sit on it and rotate ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sit on it and rotate ??


  • Subject: Re: Sit on it and rotate ??
  • From: Robert Miller <email@hidden>
  • Date: Thu, 28 Jun 2001 12:31:02 -0400
  • Organization: RFM & Associates

Kyle,


Thanks for the info. but, applying an NSAffineTransform to the curent graphics context via the concat method does in fact rotate the origin but when the image is composited it is still drawn in its
original orientation.

Regards,
Bob


Kyle Mandli wrote:

> On Thursday, June 28, 2001, at 09:07 AM, Robert Miller wrote:
>
> Can someone tell me what the trick is to rotating an image in Cocoa.
>
> I have been using the NSAffineTransform to create transformations of the coordinate system. You can then send a
>
> - (void)rotateByDegrees:(float)angle
> - (void)rotateByRadians:(float)angle
>
> then either apply it to the current NSView or go into core graphics and set it as the current coordinate system. There is a good example on how to do this in "Learning Cocoa" in one of the appendices.
>
> Good Luck.
>
> Kyle


  • Follow-Ups:
    • Re: Sit on it and rotate ??
      • From: Kyle Mandli <email@hidden>
References: 
 >Re: Sit on it and rotate ?? (From: Kyle Mandli <email@hidden>)

  • Prev by Date: Re: NSScreenSaverView and keystrokes
  • Next by Date: Re: NSScreenSaverView and keystrokes
  • Previous by thread: Re: Sit on it and rotate ??
  • Next by thread: Re: Sit on it and rotate ??
  • Index(es):
    • Date
    • Thread