• 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: Kyle Sluder <email@hidden>
  • Date: Thu, 19 Nov 2009 20:25:02 -0800

On Thu, Nov 19, 2009 at 8:05 PM, Dave Keck <email@hidden> wrote:
> 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.

Did you account for resolution independence and integral pixel
alignment?  If not, I can see how your own code would be faster.
Otherwise, I imagine Apple has done a great deal of optimization on
these functions.  If not, it might be worth filing a bug.

--Kyle Sluder
_______________________________________________

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: Dave Keck <email@hidden>
References: 
 >Stretching NSImage PNGs smoothly (From: John Wright <email@hidden>)
 >Re: Stretching NSImage PNGs smoothly (From: Dave Keck <email@hidden>)

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