• 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: NSAffineTransform scaleBy not scaling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSAffineTransform scaleBy not scaling (From: Shane <email@hidden>)
 >Re: NSAffineTransform scaleBy not scaling (From: Graham Cox <email@hidden>)
 >Re: NSAffineTransform scaleBy not scaling (From: Shane <email@hidden>)

  • Prev by Date: Re: copyWithZone - if anyone could explain this to me ?
  • Next by Date: RE: copyWithZone - if anyone could explain this to me ?
  • Previous by thread: Re: NSAffineTransform scaleBy not scaling
  • Next by thread: Carbon menus in Cocoa app
  • Index(es):
    • Date
    • Thread