• 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: NSBezierPath & Metric measurements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath & Metric measurements


  • Subject: Re: NSBezierPath & Metric measurements
  • From: Rob Keniger <email@hidden>
  • Date: Thu, 15 Mar 2007 23:04:11 +1000


On 15/03/2007, at 22:47, Aaron Scott wrote:

Does anyone know how to draw a NSBezierPath that is exactly 10mm long?

I have no problem drawing a line that is 10 points long but that is not millimeters. I basically need to draw some lines that are to scale - i.e. I want to draw a 10mm so that when it is printed it is 10mm long.

To convert points to mm you multiply by 2.834646, so in theory you would just create a path of 28.34646 points in length and it *should* print correctly, provided you are not transforming the view in any way and the printer driver is printing at 100%.


- rob.keniger

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >NSBezierPath & Metric measurements (From: Aaron Scott <email@hidden>)

  • Prev by Date: NSBezierPath & Metric measurements
  • Next by Date: Re: Problem redrawing views while window resize button is held
  • Previous by thread: NSBezierPath & Metric measurements
  • Next by thread: Detecting currently active NSColorWell(s)?
  • Index(es):
    • Date
    • Thread