Re: Resolution of an NSImage(Rep)?
Re: Resolution of an NSImage(Rep)?
- Subject: Re: Resolution of an NSImage(Rep)?
- From: Graham Cox <email@hidden>
- Date: Fri, 6 Aug 2010 00:48:02 +1000
On 06/08/2010, at 12:39 AM, Brian Postow wrote:
> ([img size].width / [rep pixelWidth]) * 72
and that should be:-
[rep pixelWidth] * 72.0 / [img size].width;
Your formula is inverted, and you should multiply before dividing to get best precision.
--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