Re: Sit on it and rotate ??
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