Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath & Metric measurements




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSBezierPath & Metric measurements (From: Aaron Scott <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.