• 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: Stretching NSImage PNGs smoothly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stretching NSImage PNGs smoothly


  • Subject: Re: Stretching NSImage PNGs smoothly
  • From: Dave Keck <email@hidden>
  • Date: Thu, 19 Nov 2009 18:05:05 -1000

NSDrawThreePartImage() might help. Of course, it requires three
separate images to begin with. (I find this preferable, though,
because it avoids having to hard-code image sizes in your code.)

In my testing several months ago, though, I found that manually
drawing the three segments (using NSImage's -drawInRect:) to be
faster. So if performance is an issue, you might be better off rolling
your own.
_______________________________________________

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: Stretching NSImage PNGs smoothly
      • From: Kyle Sluder <email@hidden>
References: 
 >Stretching NSImage PNGs smoothly (From: John Wright <email@hidden>)

  • Prev by Date: Stretching NSImage PNGs smoothly
  • Next by Date: initializer methods
  • Previous by thread: Stretching NSImage PNGs smoothly
  • Next by thread: Re: Stretching NSImage PNGs smoothly
  • Index(es):
    • Date
    • Thread