Re: NSImageView drawing the NSImage...
Re: NSImageView drawing the NSImage...
- Subject: Re: NSImageView drawing the NSImage...
- From: John Randolph <email@hidden>
- Date: Thu, 11 Mar 2004 14:38:10 -0800
On Mar 11, 2004, at 12:49 PM, Allan Dushan wrote:
Does anyone know how to retrieve the size of the NSImage AFTER it has
been scaled proportionally and drawn in the NSImageView?
You can look through the image reps in the NSImage, and ask for their
size. You probably want the first NSCachedImageRep that you come
across.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.