Re: Getting a bezier path for a character
Re: Getting a bezier path for a character
- Subject: Re: Getting a bezier path for a character
- From: Graham Cox <email@hidden>
- Date: Fri, 30 Apr 2010 13:48:36 +1000
On 30/04/2010, at 1:18 PM, danchik wrote:
> by 'reverse' i meant :
> [transform invert];
> [transform concat];
>
> since i'd have to first
> [transform transformXBy:yBy];
> [transform rotateByDegrees:];
> [transform concat];
> [myAttrString drawWithRect:options:]
An alternative is to bracket the drawing operation with a save and restore of the graphics context:
[NSGraphicsContext saveGraphicsState];
// set up a transform
[transform concat];
// draw stuff
[NSGraphicsContext restoreGraphicsState];
--Graham
_______________________________________________
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