• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scaled NSImage size of NSImageView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaled NSImage size of NSImageView?


  • Subject: Re: Scaled NSImage size of NSImageView?
  • From: Dave Fernandes <email@hidden>
  • Date: Wed, 13 Jan 2010 12:36:15 -0500

On 2010-01-13, at 12:20 PM, David Duncan wrote:

> 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.

How do you take into account the borders of the NSImageView? Is there any way to get their width/height?_______________________________________________

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

  • Follow-Ups:
    • Re: Scaled NSImage size of NSImageView?
      • From: David Duncan <email@hidden>
References: 
 >Scaled NSImage size of NSImageView? (From: Gustavo Pizano <email@hidden>)
 >Re: Scaled NSImage size of NSImageView? (From: David Duncan <email@hidden>)
 >Re: Scaled NSImage size of NSImageView? (From: Gustavo Pizano <email@hidden>)
 >Re: Scaled NSImage size of NSImageView? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 7, Issue 57
  • Next by Date: Re: Scaled NSImage size of NSImageView?
  • Previous by thread: Re: Scaled NSImage size of NSImageView?
  • Next by thread: Re: Scaled NSImage size of NSImageView?
  • Index(es):
    • Date
    • Thread