Re: NSBezierPath & Metric measurements
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