Re: NSAffineTransform scaleBy not scaling
Re: NSAffineTransform scaleBy not scaling
- Subject: Re: NSAffineTransform scaleBy not scaling
- From: Graham Cox <email@hidden>
- Date: Tue, 1 Dec 2009 16:14:20 +1100
On 01/12/2009, at 3:21 PM, Shane wrote:
> I'm trying to keep the stroke path
> the same size, even thought I resize and scale the entire NSBezierPath
> to the view size. Having a little trouble figuring out how to do this.
Instead of concatenating your transform to the current graphics context, transform the bezier path itself, using [NSBezierPath transformUsingAffineTransform:]
That will scale the path to the view rather than the view to the path, so the point size will be the same. You'll need to regenerate a new path for each plot though, as the path will be permanently changed by the above.
--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