On Jan 13, 2010, at 9:17 AM, Gustavo Pizano wrote:

> On Jan 13, 2010, at 5:53 PM, David Duncan wrote:
> 
>> On Jan 13, 2010, at 6:57 AM, Gustavo Pizano wrote:
>> 
>>> I want to get the actual size of the NSImage which I dragged into an 
>>> NSImaveView that has the imageScaling to NSImageScaleProportionallyUpOrDown.
>> 
>> Does requesting the size from the NSImage not do what you want?
> 
> it gives me the size of the original image but not the scaled that is inside 
> the NSImageView.


I see. That wasn't how I interpreted the question :).

That said, I don't see how you couldn't just calculate this yourself. Just grab 
the size of the image, figure out what the less of the two scales you need to 
fit the width or height of the image view, then scale the other component by 
the same value.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to